HDK
|
#include <PDG_EventQueue.h>
Classes | |
class | ScopedPause |
Public Member Functions | |
PDG_EventQueue (bool background) | |
Constructs a new event queue. More... | |
~PDG_EventQueue () | |
void | queueEvent (const PDG_EventEmitter *emitter, const PDG_Event &event) |
void | emitEvent (const PDG_EventEmitter *emitter, const PDG_Event &event) const |
Emits an event immediately on the calling thread. More... | |
void | waitAllEvents (PDG_EventEmitter *emitter=nullptr) |
void | waitEmitter (const PDG_EventEmitter *emitter) |
bool | isConsolidateEvents () const |
void | setConsolidateEvents (bool consolidate) |
Configures the event consolidation flag. More... | |
Friends | |
class | PDG_EventEmitter |
class | PDG_GraphContext |
Definition at line 35 of file PDG_EventQueue.h.
PDG_EventQueue::PDG_EventQueue | ( | bool | background | ) |
Constructs a new event queue.
PDG_EventQueue::~PDG_EventQueue | ( | ) |
void PDG_EventQueue::emitEvent | ( | const PDG_EventEmitter * | emitter, |
const PDG_Event & | event | ||
) | const |
Emits an event immediately on the calling thread.
|
inline |
Returns whether or not the event queue attempts to consolidate consecutive events of the same type
Definition at line 89 of file PDG_EventQueue.h.
void PDG_EventQueue::queueEvent | ( | const PDG_EventEmitter * | emitter, |
const PDG_Event & | event | ||
) |
Queues an event that will eventually be dispatched by the background thread running in this event queue instance.
|
inline |
Configures the event consolidation flag.
Definition at line 93 of file PDG_EventQueue.h.
void PDG_EventQueue::waitAllEvents | ( | PDG_EventEmitter * | emitter = nullptr | ) |
Waits for all queued events to finish, and prevents new events from being added until that condition is reached. Blocks the caller. If an event emitter is passed into this function, it gets deregistered before unblocking the event queue.
void PDG_EventQueue::waitEmitter | ( | const PDG_EventEmitter * | emitter | ) |
Waits until the specified emitter is registered, to ensure that all events for that emitter have been flushed
|
friend |
Definition at line 97 of file PDG_EventQueue.h.
|
friend |
Definition at line 98 of file PDG_EventQueue.h.