#include <vx_event_queue.hpp>
◆ EventQueue()
coreflow::EventQueue::EventQueue |
( |
bool | enabled = false, |
|
|
size_t | max_size = 128 ) |
|
inlineexplicit |
Construct a new Event Queue object.
- Parameters
-
◆ clear()
void coreflow::EventQueue::clear |
( |
| ) |
|
|
inline |
◆ isEnabled()
bool coreflow::EventQueue::isEnabled |
( |
| ) |
const |
|
inline |
Check if the event queue is enabled.
- Returns
- true if enabled
-
false if disabled
◆ push() [1/2]
Push an event to the queue.
- Parameters
-
- Returns
- true if successful
-
false if failed
◆ push() [2/2]
Push an event to the queue.
- Parameters
-
type | Event type |
data | Optional event value |
info | Optional event info pointer |
ref | Optional vx_reference used to look up additional registration data |
- Returns
- true if successful
-
false if failed
◆ registerEvent()
◆ status()
vx_status coreflow::EventQueue::status |
( |
bool | status | ) |
|
|
inline |
Update the event queue status.
- Parameters
-
status | true to enable, false to disable |
◆ wait()