MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / Lock

Method Lock

internal/utils/sync/rw_mutex.go:30–32  ·  view source on GitHub ↗
(index int)

Source from the content-addressed store, hash-verified

28}
29
30func (this *RWMutex) Lock(index int) {
31 this.lockers[index%this.countLockers].Lock()
32}
33
34func (this *RWMutex) Unlock(index int) {
35 this.lockers[index%this.countLockers].Unlock()

Callers 10

PushMethod · 0.45
ResetMethod · 0.45
PutMethod · 0.45
PutCompactMethod · 0.45
DeleteMethod · 0.45
ForEachWriteMethod · 0.45
TestNewRWMutexFunction · 0.45
BenchmarkRWMutex_LockFunction · 0.45
BenchmarkRWMutex_Lock2Function · 0.45
BenchmarkNewIntMap2Function · 0.45

Calls

no outgoing calls

Tested by 4

TestNewRWMutexFunction · 0.36
BenchmarkRWMutex_LockFunction · 0.36
BenchmarkRWMutex_Lock2Function · 0.36
BenchmarkNewIntMap2Function · 0.36