flock(filename, method = "fcntl")
NULL
is a fake lock;
acquire always succeeds.Low-level flock object. Use this if you need more flexibility
than with_flock
, but understand that if you get it
wrong you can cause deadlocks.
acquire
Usage:
acquire(delay = 0.01, max_delay = 0.1, timeout = Inf, error = TRUE,
verbose = FALSE)
Arguments:
delay
: Initial delay
max_delay
: Maximum delay between attempts
timeout
: Maximum time to wait
error
: Throw an error on failure?
verbose
: Print information while attempting to acquire lock?
release
Usage:
release()