Public Member Functions | |
SharedBuffer (const uint buffsize=0) | |
Construct a shared buffer, FIFO logic, possibly zero padded. | |
virtual | ~SharedBuffer () |
destructor | |
void | push (const T &element) |
push data on our queue | |
T | pop () |
pop some data off our queue, removing from the queue | |
void | stopWaiting () |
Definition at line 50 of file SharedBuffer.H.
SharedBuffer< T >::SharedBuffer | ( | const uint | buffsize = 0 |
) | [inline] |
Construct a shared buffer, FIFO logic, possibly zero padded.
Definition at line 79 of file SharedBuffer.H.
SharedBuffer< T >::~SharedBuffer | ( | ) | [inline, virtual] |
destructor
Definition at line 85 of file SharedBuffer.H.
T SharedBuffer< T >::pop | ( | void | ) | [inline] |
pop some data off our queue, removing from the queue
Definition at line 100 of file SharedBuffer.H.
References PosixSemaphore::post(), and PosixSemaphore::wait().
void SharedBuffer< T >::push | ( | const T & | element | ) | [inline] |
push data on our queue
Definition at line 90 of file SharedBuffer.H.
References PosixSemaphore::post(), and PosixSemaphore::wait().
void SharedBuffer< T >::stopWaiting | ( | ) | [inline] |
post a message to stop waiting on pop(), allowing threads to exit. Should only be called during cleanup.
Definition at line 122 of file SharedBuffer.H.
References PosixSemaphore::post().