Main docs: Home
Functions | |
| pw::work_queue::CustomWorkQueue< WorkItem >::CustomWorkQueue (InlineQueue< WorkItem > &queue, pw::Function< void(WorkItem &)> &&fn) | |
| Status | pw::work_queue::CustomWorkQueue< WorkItem >::PushWork (WorkItem &&work_item) |
| void | pw::work_queue::CustomWorkQueue< WorkItem >::CheckPushWork (WorkItem &&work_item) |
| void | pw::work_queue::CustomWorkQueue< WorkItem >::CheckPushWork (WorkItem &work_item) |
| void | pw::work_queue::CustomWorkQueue< WorkItem >::RequestStop () |
| void | pw::work_queue::CustomWorkQueue< WorkItem >::Clear () |
| pw::work_queue::WorkQueue::WorkQueue (InlineQueue< Closure > &queue) | |
| constexpr | pw::work_queue::CustomWorkQueueWithBuffer< kWorkQueueEntries, WorkItem >::CustomWorkQueueWithBuffer (pw::Function< void(WorkItem &)> &&fn) |
Variables | |
| InlineQueue< WorkItem, kWorkQueueEntries > | pw::work_queue::internal::Storage< WorkItem, kWorkQueueEntries >::queue |
|
inline |
Queues work for execution. Crashes if the work cannot be queued due to a full queue or a stopped worker thread.
This call is recommended where possible since it saves error handling code at the callsite; and in many practical cases, it is a bug if the work queue is full (and so a crash is useful to detect the problem).
| [in] | work_item | The entry to enqueue. |
|
inline |
Removes all pending work from the queue.
This method does not stop the work queue thread. Any work item currently being processed by the work queue thread will continue to execute.
|
inline |
| [in] | queue | The work entries to enqueue. |
| [in] | fn | The function to invoke on each enqueued WorkItem |
ThreadNotification prevents this from being constexpr.
|
inlineconstexpr |
| [in] | fn | The function to invoke on each enqueued WorkItem |
|
inline |
Enqueues a work_item for execution by the work queue thread.
| [in] | work_item | The entry to enqueue. |
|
inline |
|
inline |
| [in] | queue | The work entries to enqueue. |