jp-embedded / scxmlcc

The SCXML state machine to C++ compiler
GNU General Public License v3.0
138 stars 34 forks source link

is the fsm thread safe?can i run it in multiple thread safety #109

Closed hanhao44 closed 3 years ago

hanhao44 commented 4 years ago

is the fsm thread safe?can i run it in multiple thread safety

hanhao44 commented 4 years ago

class CEca_strategy_state_machine1 { public: void dispatch(sc_h::event e = &sc_h::state::unconditional); public: sc_h::user_model um; sc_h sc; };

can i safety create the class in muiltiple thread.

jp-embedded commented 4 years ago

There is an option '--threadsafe' to scxmlcc which makes it generate thread safe code.

hanhao44 commented 4 years ago

thanks,very much