Template Class LockingQueue

Class Documentation

template<typename T>
class LockingQueue

Public Functions

LockingQueue() = default
inline explicit LockingQueue(unsigned maxSize, bool blocking = true)
inline void setMaxSize(unsigned sz)
inline void setBlocking(bool bl)
inline unsigned getMaxSize() const
inline bool getBlocking() const
inline void destruct()
~LockingQueue() = default
template<typename Rep, typename Period>
inline bool waitAndConsumeAll(std::function<void(T&)> callback, std::chrono::duration<Rep, Period> timeout)
inline bool waitAndConsumeAll(std::function<void(T&)> callback)
inline bool consumeAll(std::function<void(T&)> callback)
inline bool push(T const &data)
template<typename Rep, typename Period>
inline bool tryWaitAndPush(T const &data, std::chrono::duration<Rep, Period> timeout)
inline bool empty() const
inline bool front(T &value)
inline bool tryPop(T &value)
inline bool waitAndPop(T &value)
template<typename Rep, typename Period>
inline bool tryWaitAndPop(T &value, std::chrono::duration<Rep, Period> timeout)
inline void waitEmpty()