MCPcopy
hub / github.com/WireGuard/wireguard-go / Mod

Method Mod

device/timers.go:48–53  ·  view source on GitHub ↗
(d time.Duration)

Source from the content-addressed store, hash-verified

46}
47
48func (timer *Timer) Mod(d time.Duration) {
49 timer.modifyingLock.Lock()
50 timer.isPending = true
51 timer.Reset(d)
52 timer.modifyingLock.Unlock()
53}
54
55func (timer *Timer) Del() {
56 timer.modifyingLock.Lock()

Callers 7

expiredSendKeepaliveFunction · 0.80
timersDataSentMethod · 0.80
timersDataReceivedMethod · 0.80
timersSessionDerivedMethod · 0.80

Calls 1

ResetMethod · 0.80

Tested by

no test coverage detected