a unbounded multi-producer single-consumer queue.
More...
#include <mpsc_queue.h>
template<typename T>
class mysql_harness::MPSCQueueDV< T >
a unbounded multi-producer single-consumer queue.
multiple threads can write at the same time into the queue, only one can read
http://www.1024cores.net/home/lock-free-algorithms/queues/non-intrusive-mpsc-node-based-queue
◆ value_type
◆ MPSCQueueDV() [1/3]
◆ ~MPSCQueueDV()
◆ MPSCQueueDV() [2/3]
◆ MPSCQueueDV() [3/3]
◆ dequeue()
try to dequeue element.
- Parameters
-
item | location of dequeued item if dequeue() was successful |
- Returns
- if item was written
- Return values
-
true | first item removed from the queue and assigned to item |
false | queue is empty |
◆ enqueue() [1/2]
enqueue an element.
- Parameters
-
- Returns
- if item was enqueued
- Return values
-
true | item got assigned to queue |
◆ enqueue() [2/2]
enqueue an element.
- Parameters
-
- Returns
- if item was enqueued
- Return values
-
true | item got assigned to queue |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ head_
◆ tail_
The documentation for this class was generated from the following file: