MIRA
Public Member Functions | List of all members
AuthorityRuntime Class Reference

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...
 
DispatcherThreadgetMainDispatcher ()
 Returns the main dispatcher (thread) of the runtime. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AuthorityRuntime()

AuthorityRuntime ( const std::string &  name = "")

Constructor taking a name that is used as a name of the thread.

◆ ~AuthorityRuntime()

Member Function Documentation

◆ start()

void start ( )

Starts the runtime.

◆ getMainDispatcher()

DispatcherThread& getMainDispatcher ( )
inline

Returns the main dispatcher (thread) of the runtime.


The documentation for this class was generated from the following file: