MCPcopy
hub / github.com/tinode/chat / Lock

Method Lock

server/concurrency/simplemutex.go:12–14  ·  view source on GitHub ↗

Lock acquires a lock on the mutex.

()

Source from the content-addressed store, hash-verified

10
11// Lock acquires a lock on the mutex.
12func (s SimpleMutex) Lock() {
13 s <- struct{}{}
14}
15
16// TryLock attempts to acquire a lock on the mutex.
17// Returns true if the lock has been acquired, false otherwise.

Callers 15

closeGrpcMethod · 0.80
MessageLoopMethod · 0.80
proxyMasterResponseMethod · 0.80
readOnceMethod · 0.80
NewSessionMethod · 0.80
GetMethod · 0.80
DeleteMethod · 0.80
RangeMethod · 0.80
ShutdownMethod · 0.80
EvictUserMethod · 0.80
NodeRestartedMethod · 0.80
addSubMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected