MCPcopy Index your code
hub / github.com/CodisLabs/codis / blockAndWait

Method blockAndWait

pkg/proxy/slots.go:52–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52func (s *Slot) blockAndWait() {
53 if !s.lock.hold {
54 s.lock.hold = true
55 s.lock.Lock()
56 }
57 s.refs.Wait()
58}
59
60func (s *Slot) unblock() {
61 if !s.lock.hold {

Callers 1

fillSlotMethod · 0.80

Calls 1

WaitMethod · 0.45

Tested by

no test coverage detected