Workspace 6.21.5
|
A queue that operates in a threadsafe manner, queueing and dequeing appropriately regardless of the calling thread. More...
#include <Rendering/OpenGL/threadsafequeue.h>
Public Types | |
using | size_type = typename ItemQueue::size_type |
using | value_type = T |
Public Member Functions | |
~ThreadSafeQueue () | |
void | clear () |
std::unique_ptr< T > | dequeue () |
bool | empty () const |
void | enqueue (std::unique_ptr< T > t) |
bool | getStopWaiting () const |
void | setStopWaiting (bool b) |
size_type | size () const |
Public Member Functions inherited from BasicTextLogger | |
BasicTextLogger () | |
virtual | ~BasicTextLogger () |
void | logLine (const Application::LogManager::MessageCategory &category, const QString &msg) const |
void | logLine (const QString &msg) const |
void | logText (const Application::LogManager::MessageCategory &category, const QString &msg) const |
void | logText (const QString &msg) const |
Internally, this queue uses std::condition_variable to sleep the thread when the queue is empty so there is no busy waiting.
using size_type = typename ItemQueue::size_type |
using value_type = T |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |