MCPcopy Index your code
hub / github.com/docker/docker-agent / lockExclusive

Function lockExclusive

pkg/cache/lock_js.go:10–12  ·  view source on GitHub ↗

lockExclusive is a no-op under js/wasm. The runtime is single-threaded and the cache file lives in either an in-memory FS or a host-mediated FS, so there is no second writer to coordinate with.

(_ *os.File)

Source from the content-addressed store, hash-verified

8// the cache file lives in either an in-memory FS or a host-mediated FS, so
9// there is no second writer to coordinate with.
10func lockExclusive(_ *os.File) error {
11 return nil
12}
13
14// unlockFile mirrors lockExclusive: there is nothing to release.
15func unlockFile(_ *os.File) error {

Callers 1

lockFileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected