MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / RLock

Method RLock

x/lock.go:45–48  ·  view source on GitHub ↗

RLock holds the reader lock.

()

Source from the content-addressed store, hash-verified

43
44// RLock holds the reader lock.
45func (s *SafeMutex) RLock() {
46 s.m.RLock()
47 atomic.AddInt32(&s.readers, 1)
48}
49
50// RUnlock releases the reader lock.
51func (s *SafeMutex) RUnlock() {

Callers 15

RaftMethod · 0.80
ConfStateMethod · 0.80
PeerMethod · 0.80
GetMethod · 0.80
GetAllMethod · 0.80
getPoolMethod · 0.80
GetMethod · 0.80
listenToHeartbeatMethod · 0.80
IsHealthyMethod · 0.80
GetMethod · 0.80
GetNodeMethod · 0.80
AmLeaderMethod · 0.80

Calls

no outgoing calls

Tested by 10

getAccessJWTTokenMethod · 0.64
TestScalarPredicateCountFunction · 0.64
TestReverseEdgeFunction · 0.64
TestReverseEdgeSetDelFunction · 0.64
PostingListMethod · 0.64
TestSplitLengthFunction · 0.64