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

Copied!

ThreadSafeQueue ()

Construction with default.


ThreadSafeQueue

Copied!

ThreadSafeQueue (const ThreadSafeQueue& copy)

Copy construction.


Methods

PushBack

Copied!

void PushBack (T value)

Push a value into the back of the queue.


PopFront

Copied!

bool PopFront (T& value)

Try to pop a value from the front of the queue. Returns false if the queue is empty.


Empty

Copied!

bool Empty () const

Check to see if there are any items in the queue.


Size

Copied!

size_t Size () const

Retrieve the number of items in the queue.