|
The Pedigree Project 0.1
|
#include <TscClock.h>
Collaboration diagram for PcTscClock::MonotonicPublication:Public Member Functions | |
| MonotonicPublication (uint64_t value=0) | |
| uint64_t | publish (uint64_t candidate) |
| uint64_t | value () const |
| void | reset (uint64_t value=0) |
Private Member Functions | |
| MonotonicPublication (const MonotonicPublication &)=delete | |
| MonotonicPublication & | operator= (const MonotonicPublication &)=delete |
Private Attributes | |
| uint64_t | m_Value |
Publishes a global monotonic floor with at most one compare-exchange.
A failed exchange returns the value which won the race. The unpublished candidate is sampled again by the next clock read rather than making a hard interrupt spin on a contended cache line.
Definition at line 105 of file TscClock.h.
|
inlineexplicit |
Definition at line 107 of file TscClock.h.
|
inline |
Definition at line 109 of file TscClock.h.
|
inline |
Definition at line 125 of file TscClock.h.
|
inline |
Definition at line 121 of file TscClock.h.
|
private |
Definition at line 130 of file TscClock.h.