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::WorkQueue Class Reference
Inheritance diagram for pw::work_queue::WorkQueue:
pw::work_queue::CustomWorkQueue< Closure > pw::work_queue::WorkQueueWithBuffer< kWorkQueueEntries >

Public Member Functions

 WorkQueue (InlineQueue< Closure > &queue)
 
- Public Member Functions inherited from pw::work_queue::CustomWorkQueue< Closure >
 CustomWorkQueue (InlineQueue< Closure > &queue, pw::Function< void(Closure &)> &&fn)
 
Status PushWork (Closure &&work_item)
 
void CheckPushWork (Closure &&work_item)
 
void CheckPushWork (Closure &work_item)
 
void RequestStop ()
 

Detailed Description

Creates a WorkQueue.

WorkQueue enqueues pw_function::Closure and the worker thread invokes the Closure.

Constructor & Destructor Documentation

◆ WorkQueue()

pw::work_queue::WorkQueue::WorkQueue ( InlineQueue< Closure > &  queue)
inline
Parameters
[in]queueThe work entries to enqueue.

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