RADCore task event loop with locked and low-latency scheduling strategies.
More...
#include <RADCore.h>
|
| using | Task = std::function< void()> |
| | Task callable type. More...
|
| |
RADCore task event loop with locked and low-latency scheduling strategies.
◆ Task
◆ EventLoop()
Creates an event loop using strategy.
◆ ~EventLoop()
| RADCore::EventLoop::~EventLoop |
( |
| ) |
|
Stops and destroys the loop implementation.
◆ exec()
| void RADCore::EventLoop::exec |
( |
| ) |
|
Runs the event loop until quit() is called.
◆ handle()
Returns a weak posting handle safe to keep beyond this EventLoop object.
◆ isEventThread()
| bool RADCore::EventLoop::isEventThread |
( |
| ) |
const |
Returns true when called from the thread running exec().
◆ post() [1/4]
template<typename F , typename... Args>
| void RADCore::EventLoop::post |
( |
F && |
f, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
Binds f and args into a normal-priority task.
◆ post() [2/4]
template<typename F , typename... Args>
| void RADCore::EventLoop::post |
( |
Priority |
priority, |
|
|
F && |
f, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
Binds f and args into a task posted with priority.
◆ post() [3/4]
| void RADCore::EventLoop::post |
( |
Priority |
priority, |
|
|
Task |
task |
|
) |
| |
Posts task with explicit priority.
◆ post() [4/4]
| void RADCore::EventLoop::post |
( |
Task |
task | ) |
|
Posts task at normal priority.
◆ postDelayed()
| bool RADCore::EventLoop::postDelayed |
( |
int |
delayMs, |
|
|
Task |
task |
|
) |
| |
Posts task to this loop after delayMs milliseconds; returns false when stopped.
◆ processEvents()
| bool RADCore::EventLoop::processEvents |
( |
| ) |
|
Processes currently queued events without entering the main loop.
◆ quit()
| void RADCore::EventLoop::quit |
( |
| ) |
|
Requests the event loop to exit.
◆ EventLoopHandle
The documentation for this class was generated from the following file:
- /media/jvincent/Kingspec512/repos/RADLib/RADCore/headers/RADCore.h