Lines Matching full:exit
185 * @brief Executes all exit actions from ctx->current to the direct child of topmost
188 * @param topmost State we are exiting to. Its exit action is not executed
198 if (to_execute->exit) { in smf_execute_all_exit_actions()
199 to_execute->exit(ctx); in smf_execute_all_exit_actions()
201 /* No need to continue if terminate was set in the exit action */ in smf_execute_all_exit_actions()
271 * It does not make sense to call smf_set_state in an exit phase of a state in smf_set_state()
276 LOG_ERR("Calling %s from exit action", __func__); in smf_set_state()
297 /* call all exit actions up to (but not including) the topmost */ in smf_set_state()
299 /* No need to continue if terminate was set in the exit action */ in smf_set_state()
303 /* if self-transition, call the exit action */ in smf_set_state()
304 if ((ctx->executing == new_state) && (new_state->exit)) { in smf_set_state()
305 new_state->exit(ctx); in smf_set_state()
307 /* No need to continue if terminate was set in the exit action */ in smf_set_state()
345 if (ctx->current->exit) { in smf_set_state()
347 ctx->current->exit(ctx); in smf_set_state()
348 /* No need to continue if terminate was set in the exit action */ in smf_set_state()