jp-embedded / scxmlcc

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

Adding a thread safe dispatch loop #51

Closed ringlej closed 6 years ago

ringlej commented 6 years ago

This PR implements a --threadsafe option to generate a dispatch loop for the use case where different thread(s) generate events to be processed by a dispatch loop. If this option is selected, the code generated requires c++17 because it uses std::optional

jp-embedded commented 6 years ago

Thanks! Very useful. Could you add unit tests for this?