|
join 1.0
lightweight network framework library
|
multiple producer single consumer ring buffer. More...
#include <queue.hpp>
Public Types | |
| using | Queue = BasicQueue<Type, Backend, Mpsc> |
Static Public Member Functions | |
| static int | tryPush (QueueSegment< Type > *segment, const Type &element) noexcept |
| try to push element into the ring buffer. | |
| static int | tryPop (QueueSegment< Type > *segment, Type &element) noexcept |
| try to pop element from the ring buffer. | |
multiple producer single consumer ring buffer.
| using join::Mpsc< Type, Backend >::Queue = BasicQueue<Type, Backend, Mpsc> |
|
inlinestaticnoexcept |
try to pop element from the ring buffer.
| segment | shared memory segment. |
| element | output element. |
|
inlinestaticnoexcept |
try to push element into the ring buffer.
| segment | shared memory segment. |
| element | element to push. |