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

bool RTT::OS::StartStopManager::start (  ) 

Call all registered start functions.

Returns:
false if one or more failed.

The documentation for this class was generated from the following file:
Generated on Thu Dec 23 13:22:47 2010 for Orocos Real-Time Toolkit by  doxygen 1.6.3