MIRA
|
This class contains threading functionality that can be shared among different authorities so that all of them use the same thread (dispatcher thread). More...
#include <fw/AuthorityRuntime.h>
Public Member Functions | |
AuthorityRuntime (const std::string &name="") | |
Constructor taking a name that is used as a name of the thread. More... | |
~AuthorityRuntime () | |
void | start () |
Starts the runtime. More... | |
DispatcherThread & | getMainDispatcher () |
Returns the main dispatcher (thread) of the runtime. More... | |
This class contains threading functionality that can be shared among different authorities so that all of them use the same thread (dispatcher thread).
Normally every authority has its own exclusive runtime and therefore its own thread. But sometimes it can be useful to share the thread so that all callbacks and process handlers are called within the same thread.
AuthorityRuntime | ( | const std::string & | name = "" | ) |
Constructor taking a name that is used as a name of the thread.
~AuthorityRuntime | ( | ) |
void start | ( | ) |
Starts the runtime.
|
inline |
Returns the main dispatcher (thread) of the runtime.