MCPcopy
hub / github.com/dgraph-io/dgraph / AlreadyLocked

Method AlreadyLocked

x/lock.go:23–25  ·  view source on GitHub ↗

AlreadyLocked returns true if safe mutex is already being held.

()

Source from the content-addressed store, hash-verified

21
22// AlreadyLocked returns true if safe mutex is already being held.
23func (s *SafeMutex) AlreadyLocked() bool {
24 return atomic.LoadInt32(&s.writer) > 0
25}
26
27// Lock locks the safe mutex.
28func (s *SafeMutex) Lock() {

Callers 1

AssertLockMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected