Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
52
func
(s *Slot) blockAndWait() {
53
if
!s.lock.hold {
54
s.lock.hold = true
55
s.lock.Lock()
56
}
57
s.refs.Wait()
58
}
59
60
func
(s *Slot) unblock() {
61
if
!s.lock.hold {
Callers
1
fillSlot
Method · 0.80
Calls
1
Wait
Method · 0.45
Tested by
no test coverage detected