Pigweed
C/C++ API Reference
|
Public Member Functions | |
constexpr | CustomWorkQueueWithBuffer (pw::Function< void(WorkItem &)> &&fn) |
![]() | |
CustomWorkQueue (InlineQueue< WorkItem > &queue, pw::Function< void(WorkItem &)> &&fn) | |
Status | PushWork (WorkItem &&work_item) |
void | CheckPushWork (WorkItem &&work_item) |
void | CheckPushWork (WorkItem &work_item) |
void | RequestStop () |
Creates a WorkQueue and the backing queue.
kWorkQueueEntries | The number of entries in the work queue |
WorkItem | The type that will enqueued. |
|
inlineconstexpr |
[in] | fn | The function to invoke on each enqueued WorkItem |