Boost logo

Boost Users :

From: Johan Kuijpers (kuijpersj_at_[hidden])
Date: 2007-09-07 05:21:16


Hello,

I have to instantiate a large collection (1200) of asynchronous statemachines which obviously can not have their own thread of execution.

My basic idea was to spawn a collection of threads with 1 scheduler per thread (inline with the tutorial) and then create several processors ie statemachines per scheduler. This seems to work however there's 1 aspect which I can not solve. When queueing an event I have to distribute now the events to the right async statemachine based on a simple id which each event carries. Problem seems the access to the statemachine (I need the id obviously) since I only have a (collection of) processor handles. How can this be done?

Kind regards,

John.


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