#include <EventCount.h>
Classes | |
class | Waiter |
Public Member Functions | |
void | CancelWait () |
void | CommitWait (Waiter *w) |
EventCount (MaxSizeVector< Waiter > &waiters) | |
void | Notify (bool notifyAll) |
void | Prewait () |
~EventCount () | |
Private Member Functions | |
EventCount (const EventCount &)=delete | |
void | operator= (const EventCount &)=delete |
void | Park (Waiter *w) |
void | Unpark (Waiter *w) |
Static Private Member Functions | |
static void | CheckState (uint64_t state, bool waiter=false) |
Private Attributes | |
std::atomic< uint64_t > | state_ |
MaxSizeVector< Waiter > & | waiters_ |
Static Private Attributes | |
static const uint64_t | kEpochBits = 64 - kEpochShift |
static const uint64_t | kEpochInc = 1ull << kEpochShift |
static const uint64_t | kEpochMask = ((1ull << kEpochBits) - 1) << kEpochShift |
static const uint64_t | kEpochShift = 3 * kWaiterBits |
static const uint64_t | kSignalInc = 1ull << kSignalShift |
static const uint64_t | kSignalMask |
static const uint64_t | kSignalShift = 2 * kWaiterBits |
static const uint64_t | kStackMask = (1ull << kWaiterBits) - 1 |
static const uint64_t | kWaiterBits = 14 |
static const uint64_t | kWaiterInc = 1ull << kWaiterShift |
static const uint64_t | kWaiterMask |
static const uint64_t | kWaiterShift = kWaiterBits |
Definition at line 49 of file EventCount.h.
|
inline |
Definition at line 53 of file EventCount.h.
|
inline |
Definition at line 58 of file EventCount.h.
|
privatedelete |
|
inline |
Definition at line 109 of file EventCount.h.
|
inlinestaticprivate |
Definition at line 209 of file EventCount.h.
|
inline |
Definition at line 79 of file EventCount.h.
|
inline |
Definition at line 130 of file EventCount.h.
|
privatedelete |
|
inlineprivate |
Definition at line 220 of file EventCount.h.
|
inline |
Definition at line 66 of file EventCount.h.
|
inlineprivate |
Definition at line 228 of file EventCount.h.
|
staticprivate |
Definition at line 203 of file EventCount.h.
|
staticprivate |
Definition at line 205 of file EventCount.h.
|
staticprivate |
Definition at line 204 of file EventCount.h.
|
staticprivate |
Definition at line 202 of file EventCount.h.
|
staticprivate |
Definition at line 201 of file EventCount.h.
|
staticprivate |
Definition at line 199 of file EventCount.h.
|
staticprivate |
Definition at line 198 of file EventCount.h.
|
staticprivate |
Definition at line 193 of file EventCount.h.
|
staticprivate |
Definition at line 192 of file EventCount.h.
|
staticprivate |
Definition at line 197 of file EventCount.h.
|
staticprivate |
Definition at line 195 of file EventCount.h.
|
staticprivate |
Definition at line 194 of file EventCount.h.
|
private |
Definition at line 206 of file EventCount.h.
|
private |
Definition at line 207 of file EventCount.h.