Struct Waiting

Inheritance Relationships

Base Type

  • public boost::statechart::state< Waiting, Running >

Struct Documentation

struct mimir::Waiting : public boost::statechart::state<Waiting, Running>

The state machine is waiting for a timer to timeout.

Public Types

typedef mpl::list<bsc::transition<EvTimeout, Evaluating>> reactions

Admissible reactions for the state.

Public Functions

Waiting(my_context ctx)

Constructor.

~Waiting()

Destructor.

Private Members

std::future<void> m_future

Mechanism to get result of async call. Needs to exist until call is done.

std::atomic<bool> m_canceled

Canceled variable, which is read in the async call.