Template Class SafeQueue

Class Documentation

template<class T>
class SafeQueue

Simple thread-safe queue.

Note: probably not ideal.

Template Parameters:

T – the queue element type

Public Functions

inline SafeQueue()

Constructor.

inline ~SafeQueue()
inline bool empty() const
inline void push(const T &element)
inline void pop()
inline const T &front() const
inline const T dequeue()