#include <States.h>
Public Types | |
typedef boost::mpl::list < boost::statechart::transition < StoppingDone, Ready > > | reactions |
Public Member Functions | |
void | activity () |
virtual void | entryAction () |
virtual void | exitAction () |
Stopping (my_context c) | |
virtual | ~Stopping () |
Private Attributes | |
boost::scoped_ptr< boost::thread > | stoppingThread_ |
typedef boost::mpl::list< boost::statechart::transition<StoppingDone,Ready> > smproxy::Stopping::reactions |
smproxy::Stopping::Stopping | ( | my_context | c | ) | [inline] |
Definition at line 319 of file States.h.
References smproxy::State< Stopping, AllOk >::safeEntryAction().
: my_state("Stopping", c) { safeEntryAction(); }
virtual smproxy::Stopping::~Stopping | ( | ) | [inline, virtual] |
Definition at line 321 of file States.h.
References smproxy::State< Stopping, AllOk >::safeExitAction().
{ safeExitAction(); }
void Stopping::activity | ( | ) |
Definition at line 272 of file StateMachine.cc.
Referenced by entryAction().
{ outermost_context_type& stateMachine = outermost_context(); stateMachine.disableConsumerRegistration(); boost::this_thread::interruption_point(); stateMachine.clearQueues(); boost::this_thread::interruption_point(); stateMachine.processEvent( StoppingDone() ); }
void Stopping::entryAction | ( | ) | [virtual] |
Reimplemented from smproxy::State< Stopping, AllOk >.
Definition at line 264 of file StateMachine.cc.
References activity(), and stoppingThread_.
{ stoppingThread_.reset( new boost::thread( boost::bind( &Stopping::activity, this) ) ); }
void Stopping::exitAction | ( | ) | [virtual] |
Reimplemented from smproxy::State< Stopping, AllOk >.
Definition at line 283 of file StateMachine.cc.
References stoppingThread_.
{ stoppingThread_->interrupt(); }
boost::scoped_ptr<boost::thread> smproxy::Stopping::stoppingThread_ [private] |
Definition at line 329 of file States.h.
Referenced by entryAction(), and exitAction().