molecular
Public Member Functions | List of all members
molecular::util::ThreadSafeQueue< T, TMutex > Class Template Reference

Thread-safe FIFO queue. More...

#include <ThreadSafeQueue.h>

Public Member Functions

void Push (T &input)
 
bool Pop (T &output)
 Pops an element from the queue. More...
 

Detailed Description

template<class T, class TMutex>
class molecular::util::ThreadSafeQueue< T, TMutex >

Thread-safe FIFO queue.

Member Function Documentation

template<class T, class TMutex>
bool molecular::util::ThreadSafeQueue< T, TMutex >::Pop ( T &  output)
inline

Pops an element from the queue.

Returns
true if there was an element in the queue. False if the queue is empty, in which case output stays unchanged.
template<class T, class TMutex>
void molecular::util::ThreadSafeQueue< T, TMutex >::Push ( T &  input)
inline

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