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
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 More...
 
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 More...
 
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 More...
 
- 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 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...
 

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 Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)