MCPcopy Index your code
hub / github.com/nutsdb/nutsdb / DecrRef

Method DecrRef

value.go:33–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33func (req *request) DecrRef() {
34 nRef := atomic.AddInt32(&req.ref, -1)
35 if nRef > 0 {
36 return
37 }
38 req.tx = nil
39 requestPool.Put(req)
40}
41
42func (req *request) Wait() error {
43 req.Wg.Wait()

Callers 1

WaitMethod · 0.95

Calls 1

PutMethod · 0.45

Tested by

no test coverage detected