MCPcopy
hub / github.com/lmorg/murex / Unlock

Method Unlock

debug/vmutex.go:23–28  ·  view source on GitHub ↗

Unlock is a wrapper around a mutex Unlock() to help locate deadlocks

()

Source from the content-addressed store, hash-verified

21
22// Unlock is a wrapper around a mutex Unlock() to help locate deadlocks
23func (v *VMutex) Unlock() {
24 _, file1, line1, _ := runtime.Caller(1)
25 _, file2, line2, _ := runtime.Caller(2)
26 Log(fmt.Sprintf("(UNLOCK) %s:%d, %s:%d, ", file1, line1, file2, line2))
27 v.m.Unlock()
28}

Callers 15

compileMethod · 0.45
HasTerminatedMethod · 0.45
SetTerminatedStateMethod · 0.45
GetMethod · 0.45
SetMethod · 0.45
addMethod · 0.45
deleteMethod · 0.45
GetForksMethod · 0.45
testStatesFunction · 0.45
SetStreamsMethod · 0.45
WriteResultsMethod · 0.45
AddMethod · 0.45

Calls 1

LogFunction · 0.85

Tested by 4

TestBadMutexFunction · 0.36
TestGoodMutexFunction · 0.36
TestProfilePathsFunction · 0.36