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.
()
| 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. |
| 126 | func (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 |