Documentation
¶
Overview ¶
Package dirlock coordinates cooperating processes with an exclusive directory. It does not recover stale locks: callers must establish that the prior owner has stopped before removing one. All participants must use the same path.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Acquire ¶
Acquire creates path exclusively, creating its parent directories if needed. It fails immediately on contention. The returned release is idempotent and refuses to remove a directory whose identity changed since acquisition. A process crash leaves the directory in place; no age-based expiry is used.
Types ¶
This section is empty.