![]() |
VR-Forces 4.10 Class Documentation
|
DtLocklessQueue is a thread safe queue for single reader/single writer. More...

Public Member Functions | |
| DtLocklessQueue (int size) | |
| CTOR. More... | |
| ~DtLocklessQueue () | |
| DTOR. More... | |
| void | push (T newElement) |
| Add an element on the queue. More... | |
| T | pop () |
| Remove an element from the queue. More... | |
| bool | okToPush () |
| Check to see if there is room in the queue. More... | |
| int | count () |
| Get the current element count. More... | |
Protected Attributes | |
| std::vector< T > | myElements |
| int | myReadHead |
| int | myWriteHead |
Private Member Functions | |
| DtLocklessQueue () | |
| Default CTOR (unimplemented) More... | |
| DtLocklessQueue (const DtLocklessQueue &orig) | |
| Copy CTOR (unimplemented) More... | |
| DtLocklessQueue & | operator= (const DtLocklessQueue &rhs) |
| Assignment operator (unimplemented) More... | |
DtLocklessQueue is a thread safe queue for single reader/single writer.
It may block if the queue fills. This provides a fast/safe way to to transmit data between threads.
| makVrf::DtLocklessQueue< T >::DtLocklessQueue | ( | int | size | ) |
CTOR.
| makVrf::DtLocklessQueue< T >::~DtLocklessQueue | ( | ) |
DTOR.
|
private |
Default CTOR (unimplemented)
|
private |
Copy CTOR (unimplemented)
| void makVrf::DtLocklessQueue< T >::push | ( | T | newElement | ) |
Add an element on the queue.
| T makVrf::DtLocklessQueue< T >::pop | ( | ) |
Remove an element from the queue.
| bool makVrf::DtLocklessQueue< T >::okToPush | ( | ) |
Check to see if there is room in the queue.
If there is not enough room, the call to push will block
| int makVrf::DtLocklessQueue< T >::count | ( | ) |
Get the current element count.
|
private |
Assignment operator (unimplemented)
|
protected |
|
protected |
|
protected |