Template Class LockingQueue
Defined in File LockingQueue.hpp
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)
-
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
-
template<typename Rep, typename Period>
inline bool tryWaitAndPop(T &value, std::chrono::duration<Rep, Period> timeout)
-
inline void waitEmpty()
-
LockingQueue() = default