We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem
How to run a state activity when I'm on a given state ?
An action is instantaneous: it does not consume time (contrary to the activity). The activity can be seen as a thread that is preempted by any external events the state reacts to. https://cs.emis.de/LNI/Proceedings/Proceedings07/TowardEfficCode_3.pdf
struct MyState { MyState(hsm::sm<MyFSM>& fsm) : m_sfm(fsm) {} void tickActivity() { // do_something not blocking too much // Allow m_fsm.process_event(EventXXX {}); } sm::sm<MyFSM>& m_fsm; }; main() { hsm::sm<MyFSM> fsm; while (true) { fsm.tickActivity(); // Call the current state tickActivity() pause(x_ms); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem
How to run a state activity when I'm on a given state ?
An action is instantaneous: it does not consume time (contrary to the activity). The activity can be seen as a thread that is preempted by any external events the state reacts to. https://cs.emis.de/LNI/Proceedings/Proceedings07/TowardEfficCode_3.pdf
The text was updated successfully, but these errors were encountered: