commit | f627c0f0afb280d30aa00da395560db963aba462 | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Sat Jun 18 10:36:25 2016 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Mon Jun 27 15:17:53 2016 +0200 |
tree | 8410f33485c959e2408335a00d571d4384697697 | |
parent | d826f1771cdada9009db599a9cf3882192bf0454 [diff] |
fsm: Introduce default time-out handling If a FSM doesn't specify any timer_cb, simply terminate the FSM by default on time-out. This is a reasonable default for most cases, and avoids copy+pasting a one-line timer_cb function in every FSM. Also, even if there is a timer_cb, let it have a return value to decide if the core should terminate after return from timer_cb or not. Change-Id: I0461a9593bfb729c82b7d1d1cf9f30b1079d0212