$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.