19 #ifndef EQ_COMMANDQUEUE_H
20 #define EQ_COMMANDQUEUE_H
22 #include <eq/client/types.h>
23 #include <eq/client/windowSystem.h>
24 #include <co/commandQueue.h>
40 virtual void push(
const co::ICommand& command );
43 virtual void pushFront(
const co::ICommand& command );
46 virtual co::ICommand
pop(
const uint32_t timeout =
47 LB_TIMEOUT_INDEFINITE );
50 virtual co::ICommands
popAll(
const uint32_t timeout =
51 LB_TIMEOUT_INDEFINITE );
54 virtual co::ICommand
tryPop();
58 {
const int64_t time = _waitTime; _waitTime = 0;
return time; }
60 void setMessagePump(
MessagePump* p ) { _messagePump = p; }
61 MessagePump* getMessagePump() {
return _messagePump; }
65 MessagePump* _messagePump;
72 #endif //EQ_COMMANDQUEUE_H
virtual co::ICommand tryPop()
virtual void pushFront(const co::ICommand &command)
virtual co::ICommand pop(const uint32_t timeout=LB_TIMEOUT_INDEFINITE)
virtual co::ICommands popAll(const uint32_t timeout=LB_TIMEOUT_INDEFINITE)
An interface to process system messages or events.
virtual void push(const co::ICommand &command)