Skip to content

Class ILLIXR::stoplight

ClassList > ILLIXR > stoplight

Start/stop synchronization for the whole application. More...

  • #include <stoplight.hpp>

Inherits the following classes: ILLIXR::phonebook::service

Public Functions

Type Name
bool check_should_stop () const
bool check_shutdown_complete () const
void signal_ready ()
void signal_should_stop ()
void signal_shutdown_complete ()
void wait_for_ready () const
void wait_for_shutdown_complete () const

Public Functions inherited from ILLIXR::phonebook::service

See ILLIXR::phonebook::service

Type Name
virtual ~service () = default

Detailed Description

Threads should: * Do initialization actions. * Wait for ready() * Do their main work in a loop until should_stop(). * Do their shutdown actions.

The main thread should: * Construct and start all plugins and construct all services. * Set ready(). * Wait for shutdown_complete().

The stopping thread should: * Someone should set should_stop(). * stop() and destruct each plugin and destruct each service. * Set shutdown_complete().

Public Functions Documentation

function check_should_stop

inline bool ILLIXR::stoplight::check_should_stop () const

function check_shutdown_complete

inline bool ILLIXR::stoplight::check_shutdown_complete () const

function signal_ready

inline void ILLIXR::stoplight::signal_ready () 

function signal_should_stop

inline void ILLIXR::stoplight::signal_should_stop () 

function signal_shutdown_complete

inline void ILLIXR::stoplight::signal_shutdown_complete () 

function wait_for_ready

inline void ILLIXR::stoplight::wait_for_ready () const

function wait_for_shutdown_complete

inline void ILLIXR::stoplight::wait_for_shutdown_complete () const


The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR/include/illixr/stoplight.hpp