Skip to main content

Module lockfile

Module lockfile 

Source

Structs§

ClientInfo
ClientsLock
ServerLock

Functions§

clients_lock_exists
Check if clients lockfile exists
clients_lockfile_path
Get path to clients lockfile
delete_clients_lock
Delete clients lockfile
delete_server_lock
Delete server lockfile
ensure_lockfile_dir
Ensure lockfile directory exists
lockfile_dir
Get the lockfile directory
read_clients_lock
Read clients lockfile with shared lock (allows concurrent reads)
read_json
Read JSON from file
read_server_lock
Read server lockfile with shared lock (allows concurrent reads)
server_lock_exists
Check if server lockfile exists
server_lockfile_path
Get path to server lockfile
with_lock
Perform operation on file with exclusive lock (single writer, no readers)
with_shared_lock
Perform read-only operation with shared lock (allows multiple concurrent readers)
write_clients_lock
Write clients lockfile
write_json
Write JSON to file (truncates)
write_server_lock
Write server lockfile