|
Hydra 0.20
|
#include <RunnableEvent.h>

Public Member Functions | |
| RunnableEventFunction (std::function< void()> f) | |
| virtual void | run (void) |
Static Public Member Functions | |
| static void | enqueueMain (std::function< void()> f) |
| static void | enqueueWorker (std::function< void()> f, int priority=0) |
An object who's run() method will call the given function.
This class can be used where QRunnable's are needed or QEvent's (via the RunnableEvent base).
| static void desktop::RunnableEventFunction::enqueueMain | ( | std::function< void()> | f | ) | [static] |
Queues the function, via a new RunnableEventFunction to the main gui thread via QCoreApplication::postEvent
| static void desktop::RunnableEventFunction::enqueueWorker | ( | std::function< void()> | f, |
| int | priority = 0 |
||
| ) | [static] |
Queues a function to the background worker thread pool.
| virtual void desktop::RunnableEventFunction::run | ( | void | ) | [virtual] |
the run method that will be called by the customEvent handler
Implements desktop::RunnableEvent.