Boost logo

Boost Users :

From: Tim Crews \(boost\) (boost_at_[hidden])
Date: 2008-08-01 17:13:33


Hello:

I have two instances of the same state machine, which are launched as
asynchronous_state_machines.

I also have some state-local storage in these state machines that I would
like to be able to access from outside the state machines. Actually, to be
more precise, I want each instance of the state machine to be able to access
a single member variable of its twin.

The problem is, if I create an asynchronous state machine in the usual way
(via fifo_scheduler<>::initiate_processor() and fifo_scheduler<>::operator
(), it seems that the actual instance of the state machine is buried in the
framework somewhere; I don't have access to a pointer to the state machine
itself.

Can anyone tell me how I go about getting a reference to the state machine
that is instantiated when fifo_scheduler<>::initiate_processor
is called?

Thank you,
Tim Crews
GECO, Inc.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net