16#include "pw_async2/context.h"
17#include "pw_async2/waker.h"
18#include "pw_containers/inline_queue.h"
28 size_t size()
const {
return queue_.size(); }
31 bool empty()
const {
return queue_.empty(); }
34 bool full()
const {
return queue_.full(); }
62template <
size_t kCapacity>
Definition: inline_queue.h:50
Definition: waker_queue.h:63
Definition: waker_queue.h:23
bool empty() const
Returns true if there are no wakers in the queue.
Definition: waker_queue.h:31
bool full() const
Returns true if the queue has no remaining space.
Definition: waker_queue.h:34
size_t size() const
Returns the number of wakers in the queue.
Definition: waker_queue.h:28
void WakeMany(size_t count)
Wakes count Wakers from the front of the queue.
void WakeOne()
Wakes the first Waker in the queue.
Definition: waker_queue.h:37
void WakeAll()
Wakes every Waker in the queue.
Definition: waker_queue.h:43