sml icon indicating copy to clipboard operation
sml copied to clipboard

How to implement active object pattern using Boost.SML?

Open biomed12 opened this issue 5 years ago • 1 comments

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.

biomed12 avatar Aug 24 '20 14:08 biomed12

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.

Rijom avatar Aug 25 '20 20:08 Rijom