Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dgraph-io/dgraph
/ Lock
Method
Lock
x/lock.go:28–31 ·
view source on GitHub ↗
Lock locks the safe mutex.
()
Source
from the content-addressed store, hash-verified
26
27
// Lock locks the safe mutex.
28
func
(s *SafeMutex) Lock() {
29
s.m.Lock()
30
AssertTrue(atomic.AddInt32(&s.writer, 1) == 1)
31
}
32
33
// Unlock unlocks the safe mutex.
34
func
(s *SafeMutex) Unlock() {
Callers
15
SetRaft
Method · 0.45
SetConfState
Method · 0.45
DoneConfChange
Method · 0.45
storeConfChange
Method · 0.45
SetPeer
Method · 0.45
DeletePeer
Method · 0.45
joinCluster
Method · 0.45
RemoveAll
Method · 0.45
remove
Method · 0.45
Connect
Method · 0.45
SetUnhealthy
Method · 0.45
listenToHeartbeat
Method · 0.45
Calls
1
AssertTrue
Function · 0.70
Tested by
9
increment
Function · 0.36
refreshToken
Method · 0.36
TestStringIndex
Function · 0.36
TestCountIndex
Function · 0.36
TestCountIndexConcurrentSetDelUIDList
Method · 0.36
TestLimiterDeadlock
Function · 0.36
commitMutation
Method · 0.36
Execute
Method · 0.36
TestConcurrentSchemaUpdates
Function · 0.36