MOTION
0.01
Framework for mixed-protocol multi-party computation
|
#include <locked_queue.h>
Public Member Functions | |
bool | empty () const |
void | enqueue (const T &item) |
void | enqueue (T &&item) |
T | dequeue () |
template<typename Tick , typename Period > | |
std::optional< T > | dequeue (const std::chrono::duration< Tick, Period > &duration) |
template<typename Tick , typename Period > | |
std::queue< T > | BatchDeque (const std::chrono::duration< Tick, Period > &duration) |
Locked queue for elements of type T
|
inline |
Extract all elements of the queue.
|
inline |
Receives an element from the queue.
|
inline |
Receives an element from the queue with timeout.
|
inline |
Checks if queue is empty.
|
inline |
Adds a new element to the queue.
|
inline |