MCPcopy 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
187func (l EventLock) Lock() bool {
188 res := false
189 select {
190 case <-l.c:
191 res = true
192 default:
193 }
194 return res
195}
196
197func (l EventLock) UnLock() {
198 l.c <- struct{}{}

Callers 15

GetChanMethod · 0.80
CloseChanMethod · 0.80
LockContainerMethod · 0.80
getNewVethMethod · 0.80
deleteVethMethod · 0.80
GetPathsMethod · 0.80
OutdatePathsMethod · 0.80
newContainerPathsMethod · 0.80
CASMethod · 0.80
ReleaseMethod · 0.80
appendLogbufMethod · 0.80
outLogDoneMethod · 0.80

Calls

no outgoing calls