... real comparison 实数real判断 time - timer expires 计时器过期 unit group 单位组 设定单位组的属性及状态 ...
基于182个网页-相关网页
当计时器过期时,将调用回调函数my _ timer_callback。
When the timer expires, the callback function (my_timer_callback) is invoked.
时间轮是一个 buckets 集合,其中每个 bucker 表示将来计时器过期的一个时间块。
The timer wheel is a collection of buckets in which each bucket represents a chunk of time in the future for timer expiration.
从用户角度看,timer_list 包含一个过期时间,一个回调函数(当/如果计时器过期),以及一个用户提供的上下文。
From a user's perspective, timer_list contains an expiration time, a callback function (when/if the timer expires), and a user-provided context.
应用推荐