MCPcopy
hub / github.com/google/gvisor / Lock

Method Lock

pkg/sentry/kernel/ipc/object.go:70–70  ·  view source on GitHub ↗

Lock behaves the same as Mutex.Lock on the mechanism.

()

Source from the content-addressed store, hash-verified

68type Mechanism interface {
69 // Lock behaves the same as Mutex.Lock on the mechanism.
70 Lock()
71
72 // Unlock behaves the same as Mutex.Unlock on the mechanism.
73 Unlock()

Callers 15

testDeferValidUnlockFunction · 0.65
testDeferValidAccessFunction · 0.65
testDeferInvalidAccessFunction · 0.65
testInferredPositiveFunction · 0.65
testTypeAliasValidFunction · 0.65
testReturnValidAcquireFunction · 0.65
testLockerValidFunction · 0.65
testInconsistentReturnFunction · 0.65
testConsistentBranchingFunction · 0.65
testUnboundedLocksFunction · 0.65

Implementers 3

Shmpkg/sentry/kernel/shm/shm.go
Setpkg/sentry/kernel/semaphore/semaphore.
Queuepkg/sentry/kernel/msgqueue/msgqueue.go

Calls

no outgoing calls

Tested by 15

newTestConnectionFunction · 0.52
newTestFilesystemFunction · 0.52
TestConnectionAbortFunction · 0.52
CallTestFunction · 0.52
TestDestroyIdempotentFunction · 0.52
HammerMutexFunction · 0.52
atFunction · 0.52
PublishMethod · 0.52
eventCountMethod · 0.52