mirror of
https://github.com/duanhf2012/origin.git
synced 2026-03-04 21:08:30 +08:00
新增Ticker定時器
This commit is contained in:
@@ -307,6 +307,9 @@ func (t *timeWheel) addTimer(timer *Timer) *Timer {
|
||||
|
||||
//删除定时器
|
||||
func (t *timeWheel) delTimer(timer *Timer) {
|
||||
if timer.next == nil {
|
||||
return
|
||||
}
|
||||
timer.prev.next = timer.next
|
||||
timer.next.prev = timer.prev
|
||||
ReleaseTimer(timer)
|
||||
|
||||
Reference in New Issue
Block a user