Pigweed
C/C++ API Reference
|
Additional Inherited Members | |
![]() | |
constexpr | WakerQueueBase (InlineQueue< Waker > &queue) |
size_t | size () const |
Returns the number of wakers in the queue. | |
bool | empty () const |
Returns true if there are no wakers in the queue. | |
bool | full () const |
Returns true if the queue has no remaining space. | |
void | WakeOne () |
Wakes the first Waker in the queue. | |
void | WakeMany (size_t count) |
Wakes count Wakers from the front of the queue. | |
void | WakeAll () |
Wakes every Waker in the queue. | |
bool | Add (Waker &&waker) |
A WakerQueue
is an ordered list of Waker
s that allows multiple tasks to wait on the same asynchronous operation.