#include <CMSWindowsEventQueueBuffer.h>
Inherits IEventQueueBuffer.
Inheritance diagram for CMSWindowsEventQueueBuffer:
Public Member Functions | |
virtual void | waitForEvent (double timeout) |
Block waiting for an event. | |
virtual Type | getEvent (CEvent &event, UInt32 &dataID) |
Get the next event. | |
virtual bool | addEvent (UInt32 dataID) |
Post an event. | |
virtual bool | isEmpty () const |
Check if event queue buffer is empty. | |
virtual CEventQueueTimer * | newTimer (double duration, bool oneShot) const |
Create a timer object. | |
virtual void | deleteTimer (CEventQueueTimer *) const |
Destroy a timer object. |
Definition at line 23 of file CMSWindowsEventQueueBuffer.h.
|
Post an event.
Add the given event to the end of the queue buffer. This is a user event and Implements IEventQueueBuffer. Definition at line 116 of file CMSWindowsEventQueueBuffer.cpp. |
|
Destroy a timer object.
Destroy a timer object previously returned by Implements IEventQueueBuffer. Definition at line 135 of file CMSWindowsEventQueueBuffer.cpp. |
|
Get the next event.
Get the next event from the buffer. Return kNone if no event is available. If a system event is next, return kSystem and fill in event. The event data in a system event can point to a static buffer (because CEvent::deleteData() will not attempt to delete data in a kSystem event). Otherwise, return kUser and fill in Implements IEventQueueBuffer. Definition at line 80 of file CMSWindowsEventQueueBuffer.cpp. |
|
Check if event queue buffer is empty. Return true iff the event queue buffer is empty. Implements IEventQueueBuffer. Definition at line 123 of file CMSWindowsEventQueueBuffer.cpp. |
|
Create a timer object. Create and return a timer object. The object is opaque and is used only by the buffer but it must be a valid object (i.e. not NULL). Implements IEventQueueBuffer. Definition at line 129 of file CMSWindowsEventQueueBuffer.cpp. |
|
Block waiting for an event.
Wait for an event in the event queue buffer for up to Implements IEventQueueBuffer. Definition at line 53 of file CMSWindowsEventQueueBuffer.cpp. |