Template Class LockingQueue

Class Documentation

template<typename T>
class LockingQueue

Public Functions

LockingQueue() = default
inline explicit LockingQueue(unsigned maxSize, bool blocking = true)
inline LockingQueue(const LockingQueue &obj)
inline LockingQueue(LockingQueue &&obj) noexcept
inline LockingQueue &operator=(const LockingQueue &obj)
inline LockingQueue &operator=(LockingQueue &&obj) noexcept
inline void setMaxSize(unsigned sz)
inline void setBlocking(bool bl)
inline unsigned getMaxSize() const
inline unsigned getSize() const
inline unsigned isFull() const
inline bool getBlocking() const
inline void destruct()
inline bool isDestroyed() const
~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)
inline bool push(T &&data)
template<typename Rep, typename Period>
inline bool tryWaitAndPush(T const &data, std::chrono::duration<Rep, Period> timeout)
template<typename Rep, typename Period>
inline bool tryWaitAndPush(T &&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()