VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
DtLockfreeQueueImpl Class Reference
+ Inheritance diagram for DtLockfreeQueueImpl:
+ Collaboration diagram for DtLockfreeQueueImpl:

Public Member Functions

 DtLockfreeQueueImpl (size_t sizeToUse)
virtual ~DtLockfreeQueueImpl ()
size_t _size () const
bool _push (void *const &t)
size_t _pop (void *&ret)
bool _empty ()
size_t _read_available () const
 get number of elements that are available for read return number of available elements that can be popped from the spsc_queue note Thread-safe and wait-free, should only be called from the consumer thread
size_t _write_available () const
 get write space to write elements return number of elements that can be pushed to the spsc_queue note Thread-safe and wait-free, should only be called from the producer thread

Private Attributes

void * myQueue
size_t mySize

Constructor & Destructor Documentation

DtLockfreeQueueImpl::DtLockfreeQueueImpl ( size_t  sizeToUse)
virtual DtLockfreeQueueImpl::~DtLockfreeQueueImpl ( )
virtual

Member Function Documentation

bool DtLockfreeQueueImpl::_empty ( )
size_t DtLockfreeQueueImpl::_pop ( void *&  ret)
bool DtLockfreeQueueImpl::_push ( void *const &  t)
size_t DtLockfreeQueueImpl::_read_available ( ) const

get number of elements that are available for read return number of available elements that can be popped from the spsc_queue note Thread-safe and wait-free, should only be called from the consumer thread

size_t DtLockfreeQueueImpl::_size ( ) const
size_t DtLockfreeQueueImpl::_write_available ( ) const

get write space to write elements return number of elements that can be pushed to the spsc_queue note Thread-safe and wait-free, should only be called from the producer thread

Member Data Documentation

void* DtLockfreeQueueImpl::myQueue
private
size_t DtLockfreeQueueImpl::mySize
private

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)