#include <States.h>
Public Types | |
typedef boost::mpl::list < boost::statechart::transition < StartingDone, Running > > | reactions |
Public Member Functions | |
void | activity () |
virtual void | entryAction () |
virtual void | exitAction () |
Starting (my_context c) | |
virtual | ~Starting () |
Private Attributes | |
boost::scoped_ptr< boost::thread > | startingThread_ |
typedef boost::mpl::list< boost::statechart::transition<StartingDone,Running> > smproxy::Starting::reactions |
smproxy::Starting::Starting | ( | my_context | c | ) | [inline] |
Definition at line 373 of file States.h.
References smproxy::State< Starting, Enabled >::safeEntryAction().
: my_state("Starting", c) { safeEntryAction(); }
virtual smproxy::Starting::~Starting | ( | ) | [inline, virtual] |
Definition at line 375 of file States.h.
References smproxy::State< Starting, Enabled >::safeExitAction().
{ safeExitAction(); }
void smproxy::Starting::activity | ( | ) |
Definition at line 232 of file StateMachine.cc.
Referenced by entryAction().
{ outermost_context_type& stateMachine = outermost_context(); stateMachine.clearInitMsgCollection(); boost::this_thread::interruption_point(); stateMachine.resetStatistics(); boost::this_thread::interruption_point(); stateMachine.clearConsumerRegistrations(); boost::this_thread::interruption_point(); stateMachine.enableConsumerRegistration(); boost::this_thread::interruption_point(); stateMachine.processEvent( StartingDone() ); }
void smproxy::Starting::entryAction | ( | ) | [virtual] |
Reimplemented from smproxy::State< Starting, Enabled >.
Definition at line 224 of file StateMachine.cc.
References activity(), and startingThread_.
{ startingThread_.reset( new boost::thread( boost::bind( &Starting::activity, this) ) ); }
void smproxy::Starting::exitAction | ( | ) | [virtual] |
Reimplemented from smproxy::State< Starting, Enabled >.
Definition at line 247 of file StateMachine.cc.
References startingThread_.
{ startingThread_->interrupt(); }
boost::scoped_ptr<boost::thread> smproxy::Starting::startingThread_ [private] |
Definition at line 383 of file States.h.
Referenced by entryAction(), and exitAction().