#include <UnboundedQueue.hpp>
Public Types | |
typedef UnboundedQueue< T, C > | OfType |
typedef C | Container |
typedef T | Task |
Public Member Functions | |
UnboundedQueue () | |
Constructs UnboundedQueue object. | |
~UnboundedQueue () | |
Destructs instance of UnboundedQueue object. | |
void | setUp () |
Initializes queuing environemnt. | |
bool | empty () const |
Returns true if queue does not have any tasks. | |
bool | full () const |
Always returns false . | |
void | flush () |
Clears the queue. | |
Task & | front () |
Returns reference to the front task in the queue which must be non-empty. | |
const Task & | front () const |
void | push (const Task &val) |
Pushes a task onto the queue for pickup by Executor. | |
void | pop () |
Removes a front task from the queue. |
Use UnboundedQueue class to create objects that will serve as unbounded task queues. Scheduler uses an instance of a queue object to buffer arriving tasks.
|
Destructs instance of UnboundedQueue object.
|
|
Returns Otherwise returns false.
|
|
Clears the queue.
|
|
Returns reference to the front task in the queue which must be non-empty.
|
|
Always returns
|
|
Removes a front task from the queue.
|
|
Pushes a task onto the queue for pickup by Executor.
|
|
Initializes queuing environemnt. Called just before Scheduler begins queing tasks. |