tkem / fsmlite

Lightweight finite state machine framework for C++11
MIT License
156 stars 25 forks source link

Explicitly specify locking strategy for fsm #20

Open tkem opened 5 years ago

tkem commented 5 years ago

A third template parameter should be added to class fsm, which specifies a BasicLockable. This would be locked at the start of process_event(), so recursive invocations can be detected. The default class should throw a logic_error in this case, except if exceptions are disabled.