C/C++ API Reference
Loading...
Searching...
No Matches
pw::async2::WakerQueue< kCapacity > Class Template Reference

Overview

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.

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)
 

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