#include <States.h>
Public Types | |
typedef boost::mpl::list < boost::statechart::transition < HaltingDone, Halted > > | reactions |
Public Member Functions | |
void | activity () |
virtual void | entryAction () |
virtual void | exitAction () |
Halting (my_context c) | |
virtual | ~Halting () |
Private Attributes | |
boost::scoped_ptr< boost::thread > | haltingThread_ |
typedef boost::mpl::list< boost::statechart::transition<HaltingDone,Halted> > smproxy::Halting::reactions |
smproxy::Halting::Halting | ( | my_context | c | ) | [inline] |
Definition at line 346 of file States.h.
References smproxy::State< Halting, AllOk >::safeEntryAction().
: my_state("Halting", c) { safeEntryAction(); }
virtual smproxy::Halting::~Halting | ( | ) | [inline, virtual] |
Definition at line 348 of file States.h.
References smproxy::State< Halting, AllOk >::safeExitAction().
{ safeExitAction(); }
void Halting::activity | ( | ) |
Definition at line 297 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( HaltingDone() ); }
void Halting::entryAction | ( | ) | [virtual] |
Reimplemented from smproxy::State< Halting, AllOk >.
Definition at line 289 of file StateMachine.cc.
References activity(), and haltingThread_.
{ haltingThread_.reset( new boost::thread( boost::bind( &Halting::activity, this) ) ); }
void Halting::exitAction | ( | ) | [virtual] |
Reimplemented from smproxy::State< Halting, AllOk >.
Definition at line 308 of file StateMachine.cc.
References haltingThread_.
{ haltingThread_->interrupt(); }
boost::scoped_ptr<boost::thread> smproxy::Halting::haltingThread_ [private] |
Definition at line 356 of file States.h.
Referenced by entryAction(), and exitAction().