SingleProducerSingleConsumerQueue

Class Hierarchy
C++
template <typename T>
class SingleProducerSingleConsumerQueue : public CryMT::detail::SingleProducerSingleConsumerQueueBase;
File

CryThread.h

Description

Producer/Consumer Queue for 1 to 1 thread communication Realized with only volatile variables and memory barriers *warning* this producer/consumer queue is only thread safe in a 1 to 1 situation and doesn't provide any yields or similar to prevent spinning

SingleProducerSingleConsumerQueue::~SingleProducerSingleConsumerQueue Destructor
C++
SingleProducerSingleConsumerQueue::Init Method
C++
void Init(size_t nSize);
SingleProducerSingleConsumerQueue::Pop Method
C++
void Pop(T * pResult);
SingleProducerSingleConsumerQueue::Push Method
C++
void Push(const T & rObj);
SingleProducerSingleConsumerQueue::SingleProducerSingleConsumerQueue Constructor
C++
SingleProducerSingleConsumerQueue();