MOTION
0.01
Framework for mixed-protocol multi-party computation
|
#include <locked_fiber_queue.h>
Public Member Functions | |
bool | empty () const noexcept |
bool | IsClosed () const noexcept |
void | close () noexcept |
void | enqueue (const T &item) |
void | enqueue (T &&item) |
std::optional< T > | dequeue () noexcept |
Closable queue for elements of type T synchronized with fiber primitives.
|
inlinenoexcept |
Close the queue.
|
inlinenoexcept |
Receives an element from the queue.
|
inlinenoexcept |
Checks if queue is empty.
|
inline |
Adds a new element to the queue.
|
inline |
|
inlinenoexcept |
Checks if queue is closed.