Pigweed
C/C++ API Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
Public Member Functions | List of all members
pw::work_queue::CustomWorkQueueWithBuffer< kWorkQueueEntries, WorkItem > Class Template Reference
Inheritance diagram for pw::work_queue::CustomWorkQueueWithBuffer< kWorkQueueEntries, WorkItem >:
pw::work_queue::internal::Storage< WorkItem, kWorkQueueEntries > pw::work_queue::CustomWorkQueue< WorkItem >

Public Member Functions

constexpr CustomWorkQueueWithBuffer (pw::Function< void(WorkItem &)> &&fn)
 
- Public Member Functions inherited from pw::work_queue::CustomWorkQueue< WorkItem >
 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 ()
 

Detailed Description

template<size_t kWorkQueueEntries, typename WorkItem>
class pw::work_queue::CustomWorkQueueWithBuffer< kWorkQueueEntries, WorkItem >

Creates a WorkQueue and the backing queue.

Parameters
kWorkQueueEntriesThe number of entries in the work queue
WorkItemThe type that will enqueued.

Constructor & Destructor Documentation

◆ CustomWorkQueueWithBuffer()

template<size_t kWorkQueueEntries, typename WorkItem >
constexpr pw::work_queue::CustomWorkQueueWithBuffer< kWorkQueueEntries, WorkItem >::CustomWorkQueueWithBuffer ( pw::Function< void(WorkItem &)> &&  fn)
inlineconstexpr
Parameters
[in]fnThe function to invoke on each enqueued WorkItem

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