template class ThreadSafeQueue
Thread-safe queue implementation.
File location: framework/cauldron/framework/inc/misc/threadsafe_queue.h
Construction
Return type |
Description |
---|---|
Construction with default.
|
|
ThreadSafeQueue (const ThreadSafeQueue& copy)
Copy construction.
|
Methods
Return type |
Description |
---|---|
void |
PushBack (T value)
Push a value into the back of the queue.
|
bool |
PopFront (T& value)
Try to pop a value from the front of the queue. Returns false if the queue is empty.
|
bool |
Empty () const
Check to see if there are any items in the queue.
|
size_t |
Size () const
Retrieve the number of items in the queue.
|
Detailed description
Thread-safe queue implementation. Currently used to back Device
command allocators.
Construction
ThreadSafeQueue
Construction with default.
ThreadSafeQueue
Copy construction.
Methods
PushBack
Push a value into the back of the queue.
PopFront
Try to pop a value from the front of the queue. Returns false if the queue is empty.
Empty
Check to see if there are any items in the queue.
Size
Retrieve the number of items in the queue.