MCPcopy Create free account
hub / github.com/DNAProject/DNA / stop

Method stop

consensus/vbft/event_timer.go:110–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108}
109
110func (self *EventTimer) stop() {
111 self.lock.Lock()
112 defer self.lock.Unlock()
113
114 // clear timers by event timer
115 for i := 0; i < int(EventMax); i++ {
116 stopAllTimers(self.eventTimers[TimerEventType(i)])
117 self.eventTimers[TimerEventType(i)] = make(map[uint32]*time.Timer)
118 }
119
120 // clear normal timers
121 stopAllTimers(self.normalTimers)
122 self.normalTimers = make(map[uint32]*time.Timer)
123}
124
125func (self *EventTimer) StartTimer(Idx uint32, timeout time.Duration) {
126 self.lock.Lock()

Callers

nothing calls this directly

Calls 2

stopAllTimersFunction · 0.85
TimerEventTypeTypeAlias · 0.85

Tested by

no test coverage detected