MCPcopy
hub / github.com/tinygo-org/tinygo / fakeLocker

Struct fakeLocker

src/sync/cond_test.go:78–80  ·  view source on GitHub ↗

fakeLocker is a fake sync.Locker where unlock calls an arbitrary function.

Source from the content-addressed store, hash-verified

76
77// fakeLocker is a fake sync.Locker where unlock calls an arbitrary function.
78type fakeLocker struct {
79 unlock func()
80}
81
82func (l fakeLocker) Lock() {}
83func (l fakeLocker) Unlock() { l.unlock() }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected