EventQueue
namespace: privmx::endpoint::core
EventQueue is a singleton class representing a queue for storing events.
Static Methods
getInstance
Gets the EventQueue instance.
static EventQueue getInstance()
Type | Description |
---|---|
EventQueue | EventQueue object |
Methods
emitBreakEvent
Puts the break event on the events queue. You can use it to break the `waitEvent` loop.
void emitBreakEvent()
waitEvent
Starts a loop waiting for an Event
EventHolder waitEvent()
Type | Description |
---|---|
EventHolder | EventHolder object |
getEvent
Gets the first event from the events queue.
std::optional< EventHolder > getEvent()
Type | Description |
---|---|
std::optional<EventHolder> | EventHolder object (optional) |