Boost logo

Boost Users :

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


Regarding the subj, the reference says:


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

output MyMachine::invoke(SomeInput intput)
  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,


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at