|
Equalizer 1.0
|
A CommandQueue is a thread-safe queue for command packets. More...
#include <commandQueue.h>
Inheritance diagram for co::CommandQueue:
Collaboration diagram for co::CommandQueue:Public Member Functions | |
| virtual CO_API void | push (Command &packet) |
| Push a command to the queue. | |
| virtual CO_API void | pushFront (Command &packet) |
| Push a command to the front of the queue. | |
| virtual void | wakeup () |
| Wake up the command queue, pop() will return 0. | |
| virtual CO_API Command * | pop () |
| Pop a command from the queue. | |
| virtual CO_API Command * | tryPop () |
| Try to pop a command from the queue. | |
| bool | isEmpty () const |
| virtual CO_API void | flush () |
| Flush all cached commands. | |
| size_t | getSize () const |
| EQ_TS_VAR (_thread) | |
A CommandQueue is a thread-safe queue for command packets.
Definition at line 34 of file co/commandQueue.h.
| virtual CO_API void co::CommandQueue::flush | ( | ) | [virtual] |
Flush all cached commands.
| size_t co::CommandQueue::getSize | ( | ) | const [inline] |
Definition at line 81 of file co/commandQueue.h.
References co::base::MTQueue< T >::getSize().
Here is the call graph for this function:| bool co::CommandQueue::isEmpty | ( | ) | const [inline] |
true if the command queue is empty, false if not. Definition at line 75 of file co/commandQueue.h.
References co::base::MTQueue< T >::isEmpty().
Referenced by eq::Config::checkEvent().
Here is the call graph for this function:
Here is the caller graph for this function:| virtual CO_API Command* co::CommandQueue::pop | ( | ) | [virtual] |
Pop a command from the queue.
The returned command has to be released after usage.
Reimplemented in eq::CommandQueue.
| virtual CO_API void co::CommandQueue::push | ( | Command & | packet | ) | [virtual] |
Push a command to the queue.
| packet | the command packet. |
Reimplemented in eq::CommandQueue.
| virtual CO_API void co::CommandQueue::pushFront | ( | Command & | packet | ) | [virtual] |
Push a command to the front of the queue.
Reimplemented in eq::CommandQueue.
| virtual CO_API Command* co::CommandQueue::tryPop | ( | ) | [virtual] |
Try to pop a command from the queue.
The returned command has to be released after usage.
Reimplemented in eq::CommandQueue.
| virtual void co::CommandQueue::wakeup | ( | ) | [inline, virtual] |
Wake up the command queue, pop() will return 0.
Reimplemented in eq::CommandQueue.
Definition at line 51 of file co/commandQueue.h.
References co::base::MTQueue< T >::push().
Here is the call graph for this function:
1.0 by
1.7.3