S3FC project page | S3FC home page |
#include <s3_fifo_base.h>
Inheritance diagram for s3_fifo_base:
Public Types | |
typedef T | s3_queue_data_t |
Public Methods | |
virtual | ~s3_fifo_base () |
Destructor: virtual. More... | |
virtual void | push (const T &t)=0 |
Insert object at the head of the queue. More... | |
virtual T | pop ()=0 |
Remove and return object at the tail of the queue. More... | |
virtual bool | empty () const=0 |
Check if queue is empty. More... | |
virtual bool | full () const=0 |
Check whether queue is full. More... | |
virtual unsigned int | size () const=0 |
Return number of elements in queue. More... | |
Static Protected Methods | |
void | unlock_mutex (void *p) |
INTERNAL helper (i.e. More... |
It provides an interface to atomically insert and remove elements from the queue as well as determining whether the queue if full or empty and the number of elements in the queue.
Any number of producers or consumers can subscribe to a queue to be notified when the producer- or consumer-side of a queue changes. This is signalled by post()
'ing to a semaphore.
Definition at line 135 of file s3_fifo_base.h.
|
Definition at line 140 of file s3_fifo_base.h. |
|
Destructor: virtual.
Definition at line 145 of file s3_fifo_base.h. |
|
Check if queue is empty.
Implemented in s3_fifo_queue. |
|
Check whether queue is full.
Implemented in s3_fifo_queue. |
|
Remove and return object at the tail of the queue.
Implemented in s3_growable_fifo_queue. |
|
Insert object at the head of the queue.
Implemented in s3_growable_fifo_queue. |
|
Return number of elements in queue.
Implemented in s3_fifo_queue. |
|
INTERNAL helper (i.e.
no future interface guarantees) function. Convert the Definition at line 183 of file s3_fifo_base.h. Referenced by s3_fifo_queue< s3_txport_data< s3_message > >::open_input, s3_fifo_queue< s3_txport_data< s3_message > >::open_output, s3_growable_fifo_queue< s3_txport_event >::pop, and s3_growable_fifo_queue< s3_txport_event >::push. |
Send comments to: s3fc@stonethree.com |
|