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
DtLockfreeQueue< T > Class Template Reference
+ Inheritance diagram for DtLockfreeQueue< T >:
+ Collaboration diagram for DtLockfreeQueue< T >:

Public Member Functions

 DtLockfreeQueue (size_t sizeToUse)
 ~DtLockfreeQueue ()
size_t size () const
bool push (T const &t)
size_t pop (T &ret)
bool empty (void)
size_t readAvailableForConsumption () 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 writeAvailableForProduction () 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
size_t writtenAvailableForConsumption () const
 get number of elements that are not available for writing return potential number of available elements waiting to be popped from the spsc_queue note Thread-safe and wait-free, should only be called from the producer thread
- Public Member Functions inherited from DtLockfreeQueueImpl
 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

Constructor & Destructor Documentation

template<class T >
DtLockfreeQueue< T >::DtLockfreeQueue ( size_t  sizeToUse)
inline
template<class T >
DtLockfreeQueue< T >::~DtLockfreeQueue ( )
inline

Member Function Documentation

template<class T >
bool DtLockfreeQueue< T >::empty ( void  )
inline
template<class T >
size_t DtLockfreeQueue< T >::pop ( T &  ret)
inline
template<class T >
bool DtLockfreeQueue< T >::push ( T const &  t)
inline
template<class T >
size_t DtLockfreeQueue< T >::readAvailableForConsumption ( ) const
inline

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

template<class T >
size_t DtLockfreeQueue< T >::size ( ) const
inline
template<class T >
size_t DtLockfreeQueue< T >::writeAvailableForProduction ( ) const
inline

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

template<class T >
size_t DtLockfreeQueue< T >::writtenAvailableForConsumption ( ) const
inline

get number of elements that are not available for writing return potential number of available elements waiting to be popped from the spsc_queue note Thread-safe and wait-free, should only be called from the producer thread


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

Document ID: Generated on Mon Apr 8 04:49:21 EDT 2019 from SVN revision 197403
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)