|
Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
|
Queue Policy for a traditional mutex-protected blocking queue (power saving). More...
#include <QueuePolicies.hpp>
Collaboration diagram for corium::BlockingQueuePolicy< EventVariant >:Classes | |
| struct | PushResult |
Public Types | |
| using | EventType = EventVariant |
Public Member Functions | |
| bool | empty () const |
| Check if queue is empty. | |
| bool | tryPop (EventVariant &event) |
| Try to pop an event from the blocking queue. | |
| PushResult | tryPush (EventVariant event, EventPriority priority=EventPriority::Normal) |
| Try to push an event into the blocking queue. | |
Queue Policy for a traditional mutex-protected blocking queue (power saving).
| EventVariant | The variant type list of supported events. |
| using corium::BlockingQueuePolicy< EventVariant >::EventType = EventVariant |
|
inline |
Check if queue is empty.
|
inline |
Try to pop an event from the blocking queue.
|
inline |
Try to push an event into the blocking queue.