queue

Class Hierarchy
C++
template <class T, class Alloc = std::allocator >
class queue;
File

MultiThread_Containers.h

Description

Multi-Thread safe queue container, can be used instead of std::vector.

queue::back Method
C++
const T& back() const;
queue::clear Method
C++
void clear();
queue::empty Method
C++
bool empty() const;
queue::free_memory Method
C++
void free_memory();
queue::front Method
C++
const T& front() const;
Description

std::queue interface

queue::get_lock Method
C++
CryCriticalSection& get_lock() const;
Description

classic pop function of queue should not be used for thread safety, use try_pop instead void pop() { AutoLock lock(m_cs); return v.erase(v.begin()); };

queue::GetMemoryUsage Method
C++
template <typename Sizer> void GetMemoryUsage(Sizer * pSizer) const;
queue::push Method
C++
void push(const T& x);
queue::reserve Method
C++
void reserve(const size_t n);
queue::size Method
C++
int size() const;
queue::sort Method
C++
template <class Func> void sort(const Func & compare_less);
queue::try_pop Method
C++
bool try_pop(T& returnValue);
queue::try_remove Method
C++
bool try_remove(const T& value);
queue::AutoLock Nested Type
C++
typedef CryAutoCriticalSection AutoLock;
queue::container_type Nested Type
C++
typedef std::vector container_type;
queue::value_type Nested Type
C++
typedef T value_type;