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
|
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: