sml
sml copied to clipboard
How to implement active object pattern using Boost.SML?
I want to implement active object pattern using Boost SML, so I need to queue events. But because of every event has different type, I could not queue events. I have made some designs but I could not break circular dependencies.
Not sure exactly what your question is.
Do you want to build an event queue that then is processed by a dedicated thread? You need to use type erasure of some sort. Simplest starting point would be to use std::function.