MCPcopy Index your code
hub / github.com/subtrace/subtrace / DecRef

Method DecRef

cmd/run/fd/fd.go:126–128  ·  view source on GitHub ↗

DecRef decrements the ref counter. If this call to DecRef corresponds to a ClosingIncRef, future fd.FD() calls will panic, so remember to call Lock between ClosingIncRef and DecRef.

()

Source from the content-addressed store, hash-verified

124// If this call to DecRef corresponds to a ClosingIncRef, future fd.FD() calls
125// will panic, so remember to call Lock between ClosingIncRef and DecRef.
126func (fd *FD) DecRef() {
127 fd.decRef(false)
128}
129
130// ClosingIncRef tries to increment the ref counter and mark fd as closed
131// atomically. If fd was already closed or is being closed by a different

Callers 15

forkChildMethod · 0.95
handleOpenMethod · 0.95
handleFcntlMethod · 0.95
NewFunction · 0.95
CreateSocketFunction · 0.95
AcceptMethod · 0.95
newTempBindSocketFunction · 0.95
TestBasicFunction · 0.95
CloseMethod · 0.80
receiveSingleMethod · 0.80
ValidMethod · 0.80
sendMethod · 0.80

Calls 1

decRefMethod · 0.95

Tested by 1

TestBasicFunction · 0.76