Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/baidu/EasyFaaS
/ Lock
Method
Lock
pkg/api/funclet.go:187–195 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
185
}
186
187
func
(l EventLock) Lock() bool {
188
res := false
189
select
{
190
case
<-l.c:
191
res = true
192
default:
193
}
194
return
res
195
}
196
197
func
(l EventLock) UnLock() {
198
l.c <-
struct
{}{}
Callers
15
GetChan
Method · 0.80
CloseChan
Method · 0.80
LockContainer
Method · 0.80
getNewVeth
Method · 0.80
deleteVeth
Method · 0.80
GetPaths
Method · 0.80
OutdatePaths
Method · 0.80
newContainerPaths
Method · 0.80
CAS
Method · 0.80
Release
Method · 0.80
appendLogbuf
Method · 0.80
outLogDone
Method · 0.80
Calls
no outgoing calls
Tested by
5
BenchmarkRWMutexMapSet
Function · 0.64
BenchmarkRWMutexMapSetDelete
Function · 0.64
BenchmarkCacheSetDeleteSingleLock
Function · 0.64
BenchmarkRWMutexMapSetDeleteSingleLock
Function · 0.64
BenchmarkDeleteExpiredLoop
Function · 0.64