Support Forum       G3D Web Page     
Public Member Functions | List of all members
G3D::ThreadsafeQueue< T > Class Template Reference

A queue whose methods are synchronized with respect to each other. More...

Public Member Functions

void clear ()
 
bool empty () const
 
bool popBack (T &v)
 Returns true if v was actually read. More...
 
bool popFront (T &v)
 Returns true if v was actually read. More...
 
void pushBack (const T &v)
 
void pushFront (const T &v)
 
int size () const
 Note that by the time the method has returned, the value may be incorrect. More...
 

Detailed Description

template<class T>
class G3D::ThreadsafeQueue< T >

A queue whose methods are synchronized with respect to each other.

See also
Queue, Spinlock

Member Function Documentation

◆ clear()

template<class T>
void G3D::ThreadsafeQueue< T >::clear ( )
inline

◆ empty()

template<class T>
bool G3D::ThreadsafeQueue< T >::empty ( ) const
inline

◆ popBack()

template<class T>
bool G3D::ThreadsafeQueue< T >::popBack ( T &  v)
inline

Returns true if v was actually read.

◆ popFront()

template<class T>
bool G3D::ThreadsafeQueue< T >::popFront ( T &  v)
inline

Returns true if v was actually read.

◆ pushBack()

template<class T>
void G3D::ThreadsafeQueue< T >::pushBack ( const T &  v)
inline

◆ pushFront()

template<class T>
void G3D::ThreadsafeQueue< T >::pushFront ( const T &  v)
inline

◆ size()

template<class T>
int G3D::ThreadsafeQueue< T >::size ( ) const
inline

Note that by the time the method has returned, the value may be incorrect.

Referenced by G3D::ThreadsafeQueue< G3D::_internal::NetworkCallbackInfo >::empty().


documentation generated on Wed Nov 24 2021 08:02:01 using doxygen 1.8.15