Orocos Real-Time Toolkit  2.6.0
Public Types | Public Member Functions | Static Public Member Functions
RTT::os::StartStopManager Class Reference

This manager starts and stops all globally registered start/stop functions, without a particular order. More...

#include <rtt/os/StartStopManager.hpp>

List of all members.

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 StartStopManagerInstance ()
static void Release ()

Detailed Description

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.


Member Function Documentation

Call all registered start functions.

Returns:
false if one or more failed.

Definition at line 72 of file StartStopManager.cpp.

Referenced by __os_init().


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