Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
30
func
(this *RWMutex) Lock(index int) {
31
this.lockers[index%this.countLockers].Lock()
32
}
33
34
func
(this *RWMutex) Unlock(index int) {
35
this.lockers[index%this.countLockers].Unlock()
Callers
10
Push
Method · 0.45
Reset
Method · 0.45
Put
Method · 0.45
PutCompact
Method · 0.45
Delete
Method · 0.45
ForEachWrite
Method · 0.45
TestNewRWMutex
Function · 0.45
BenchmarkRWMutex_Lock
Function · 0.45
BenchmarkRWMutex_Lock2
Function · 0.45
BenchmarkNewIntMap2
Function · 0.45
Calls
no outgoing calls
Tested by
4
TestNewRWMutex
Function · 0.36
BenchmarkRWMutex_Lock
Function · 0.36
BenchmarkRWMutex_Lock2
Function · 0.36
BenchmarkNewIntMap2
Function · 0.36