Orocos Real-Time Toolkit
2.6.0
|
This manager starts and stops all globally registered start/stop functions, without a particular order. More...
#include <rtt/os/StartStopManager.hpp>
Public Types | |
typedef boost::function< int(void)> | start_fun |
typedef boost::function< void(void)> | stop_fun |
Public Member Functions | |
void | startFunction (start_fun t) |
Register a start function. | |
void | stopFunction (stop_fun t) |
Register a stop function. | |
bool | start () |
Call all registered start functions. | |
void | stop () |
Call all registered stop functions. | |
Static Public Member Functions | |
static StartStopManager * | Instance () |
static void | Release () |
This manager starts and stops all globally registered start/stop functions, without a particular order.
This is guaranteed to work, because it uses the Singleton pattern with a global pointer. This pointer is initialised to zero at program startup, before the global constructors are called. The first time a global constructor calls this manager, it will be properly constructed.
Definition at line 61 of file StartStopManager.hpp.
bool RTT::os::StartStopManager::start | ( | ) |
Call all registered start functions.
Definition at line 72 of file StartStopManager.cpp.
Referenced by __os_init().