VR-Link API Documentation for HLA 1.3
 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 More...
 
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 More...
 

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 Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)