Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/facebook/time
/ decRunningHandlers
Method
decRunningHandlers
cmd/ziffy/node/receiver_linux.go:99–104 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
97
}
98
99
func
(r *Receiver) decRunningHandlers() bool {
100
r.Lock()
101
defer
r.Unlock()
102
r.runningHandlers--
103
return
r.runningHandlers >= 0
104
}
105
106
func
(r *Receiver) handlePacket(rawPacket gopacket.Packet) {
107
defer
func
() {
Callers
2
TestDecRunningHandlers
Function · 0.95
handlePacket
Method · 0.95
Calls
1
Unlock
Method · 0.65
Tested by
1
TestDecRunningHandlers
Function · 0.76