CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

smproxy::Configuring Class Reference

#include <States.h>

Inheritance diagram for smproxy::Configuring:
smproxy::State< Configuring, AllOk > smproxy::StateName state

List of all members.

Public Types

typedef boost::mpl::list
< boost::statechart::transition
< ConfiguringDone, Ready > > 
reactions

Public Member Functions

void activity ()
 Configuring (my_context c)
virtual void entryAction ()
virtual void exitAction ()
virtual ~Configuring ()

Private Attributes

boost::scoped_ptr< boost::thread > configuringThread_

Detailed Description

The Configuring state of outer-state AllOk.

Definition at line 235 of file States.h.


Member Typedef Documentation

typedef boost::mpl::list< boost::statechart::transition<ConfiguringDone,Ready> > smproxy::Configuring::reactions

Definition at line 242 of file States.h.


Constructor & Destructor Documentation

smproxy::Configuring::Configuring ( my_context  c) [inline]

Definition at line 244 of file States.h.

References smproxy::State< Configuring, AllOk >::safeEntryAction().

                              : my_state("Configuring", c)
    { safeEntryAction(); }
virtual smproxy::Configuring::~Configuring ( ) [inline, virtual]

Member Function Documentation

void smproxy::Configuring::activity ( )

Definition at line 207 of file StateMachine.cc.

Referenced by entryAction().

  {
    outermost_context_type& stateMachine = outermost_context();
    stateMachine.updateConfiguration();
    boost::this_thread::interruption_point();
    stateMachine.setQueueSizes();
    boost::this_thread::interruption_point();
    stateMachine.processEvent( ConfiguringDone() );
  }
void smproxy::Configuring::entryAction ( ) [virtual]

Reimplemented from smproxy::State< Configuring, AllOk >.

Definition at line 199 of file StateMachine.cc.

References activity(), and configuringThread_.

  {
    configuringThread_.reset(
      new boost::thread( boost::bind( &Configuring::activity, this) )
    );
  }
void smproxy::Configuring::exitAction ( ) [virtual]

Reimplemented from smproxy::State< Configuring, AllOk >.

Definition at line 218 of file StateMachine.cc.

References configuringThread_.

  {
    configuringThread_->interrupt();
  }

Member Data Documentation

boost::scoped_ptr<boost::thread> smproxy::Configuring::configuringThread_ [private]

Definition at line 254 of file States.h.

Referenced by entryAction(), and exitAction().