Boost logo

Boost Users :

From: Igor R (boost.lists_at_[hidden])
Date: 2008-06-03 05:59:40


Hi,

Regarding the subj, the reference says:

Effects:

1. Calls terminate()
......
5. Processes all posted events (see process_event()). Returns to the
caller if there are no more posted events

But on terminate() call, all the posted events are cleared, so
initiate() has nothing to process. Thus, I cannot write something like
this:

output MyMachine::invoke(SomeInput intput)
{
  post_event(EvIput(input));
  initiate(); // I want to proceed only after all the input is
processed; the states might post internal events
  return output;
}

What would be the correct solution for this?

Thanks a lot,

Igor'.


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