Skip to content
Snippets Groups Projects
Closed Use an atomic for the value of channels' unused-since timestamps
  • View options
  • Use an atomic for the value of channels' unused-since timestamps

  • View options
  • Closed Issue created by Nick Mathewson

    See discussion on !273 (merged): We'd like to have the unused_since field in ChannelDetails be atomic, or implemented in terms of an atomic.

    On that MR I suggested:

    I'd define a new OptTimestamp type, based on Timestamp, except with the value 0 representing None. It would behave semantically like Option<Timestamp>, but internally it would just be an AtomicU64. Then I'd give it both update() and clear() functions to change its state, along with the other accessors that the functions update_disused_since and duration_unused would need.

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading