mirror of
https://github.com/apache/nuttx.git
synced 2026-05-12 17:58:10 +08:00
edf89ddedd
Add a safe synchronous hrtimer cancel API, hrtimer_cancel_sync(). If the timer callback is currently executing, this function waits until the callback has completed and the timer state transitions to HRTIMER_STATE_INACTIVE. Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>