Closed galois-advertising closed 9 months ago
Sorry, msm is not thread-safe, so there is no guarantee this would work. I suggest making the whole state machine execute in an executor of if you excuse self-advertising: https://github.com/henry-ch/asynchronous
I found a someone encounter the same problem here Google Groups: Stuck in pseudo exit But he does not give the completely code. The following code will show the bug, use another thread to process_event(ev_on_timestamp()) will trigger the bug.
FSM definition
MSM implement
The buggy test case output
The ok test case output