Documentation
¶
Overview ¶
Package filelock is an exclusive inter-process lock on a private file: an SQLite write transaction, which the operating system releases however the holding process exits, so a lock is never stale.
The file is only ever opened through SQLite. On Unix, closing any other descriptor of a file drops every POSIX lock the process holds on it; SQLite keeps its own descriptors open while a lock is held, so probing a lock this process holds (Held) leaves it in place.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLocked = errors.New("locked")
ErrLocked reports a lock another holder has.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.