summaryrefslogtreecommitdiffstats
path: root/tests/sim
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-05-18 21:03:55 +0200
committerHarald Welte <laforge@gnumonks.org>2019-06-05 10:01:20 +0000
commit7b74551b93421d30d5f0346042993ff763ddbe25 (patch)
tree16d05cdaf21e172d5ca5f94424cb58be0c45a996 /tests/sim
parent7a56952307a0d1ff673900e68a73a0a961b5197c (diff)
fsm: Allow millisecond granularity in osmo_fsm built-in timer
So far, the public API of osmo_fsm only allowed integral seconds as timeout. Let's change that to milli-seconds in order to cover more use cases. This introduces * osmo_fsm_inst_state_chg_ms() * osmo_fsm_inst_state_chg_keep_or_start_timer_ms() Which both work exactly like their previous counterparts without the _ms suffix - the only difference being that the timeout parameter is specified in milli-seconds, not in seconds. The value range for an unsigned long in milli-seconds even on a 32bit platform extends to about 48 days. This patch also removes the documentation notice about limiting the maximum value to 0x7fffffff due to time_t signed-ness. We don't use time_t but unsigned long. Change-Id: I35b330e460e80bb67376c77e997e464439ac5397
Diffstat (limited to 'tests/sim')
0 files changed, 0 insertions, 0 deletions