Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/docker/docker-agent
/ newProcessLock
Function
newProcessLock
pkg/memory/database/lock.go:16–20 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
14
type
processLock
chan
struct
{}
15
16
func
newProcessLock() processLock {
17
lock := make(processLock, 1)
18
lock <-
struct
{}{}
19
return
lock
20
}
21
22
func
(l processLock) Lock(ctx context.Context) error {
23
select
{
Callers
1
NewFileLock
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected