Pigweed
C/C++ API Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
List of all members
pw::async2::WakerQueue< kCapacity > Class Template Reference
Inheritance diagram for pw::async2::WakerQueue< kCapacity >:
pw::async2::internal::WakerQueueBase

Additional Inherited Members

- Public Member Functions inherited from pw::async2::internal::WakerQueueBase
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)
 

Detailed Description

template<size_t kCapacity>
class pw::async2::WakerQueue< kCapacity >

A WakerQueue is an ordered list of Wakers that allows multiple tasks to wait on the same asynchronous operation.


The documentation for this class was generated from the following file: