MOTION  0.01
Framework for mixed-protocol multi-party computation
Public Member Functions | List of all members
encrypto::motion::LockedFiberQueue< T > Class Template Reference

#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
 

Detailed Description

template<typename T>
class encrypto::motion::LockedFiberQueue< T >

Closable queue for elements of type T synchronized with fiber primitives.

Member Function Documentation

◆ close()

template<typename T >
void encrypto::motion::LockedFiberQueue< T >::close ( )
inlinenoexcept

Close the queue.

Here is the caller graph for this function:

◆ dequeue()

template<typename T >
std::optional<T> encrypto::motion::LockedFiberQueue< T >::dequeue ( )
inlinenoexcept

Receives an element from the queue.

Here is the caller graph for this function:

◆ empty()

template<typename T >
bool encrypto::motion::LockedFiberQueue< T >::empty ( ) const
inlinenoexcept

Checks if queue is empty.

◆ enqueue() [1/2]

template<typename T >
void encrypto::motion::LockedFiberQueue< T >::enqueue ( const T &  item)
inline

Adds a new element to the queue.

Here is the caller graph for this function:

◆ enqueue() [2/2]

template<typename T >
void encrypto::motion::LockedFiberQueue< T >::enqueue ( T &&  item)
inline

◆ IsClosed()

template<typename T >
bool encrypto::motion::LockedFiberQueue< T >::IsClosed ( ) const
inlinenoexcept

Checks if queue is closed.


The documentation for this class was generated from the following file: