diff options
Diffstat (limited to 'src/filesystem.h')
-rw-r--r-- | src/filesystem.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/filesystem.h b/src/filesystem.h index 1b29d42..9cf6e4b 100644 --- a/src/filesystem.h +++ b/src/filesystem.h @@ -88,13 +88,17 @@ lilv_symlink(const char* oldpath, const char* newpath); /** Set or remove an advisory exclusive lock on `file`. - If the `lock` is true and the file is already locked, then this will not - succeed and non-zero will be returned. + If the `lock` is true and the file is already locked by another process, or + by this process via a different file handle, then this will not succeed and + non-zero will be returned. + @param file Handle for open file to lock. + @param lock True to set lock, false to release lock. + @param block If true, then this call will block until the lock is acquired. @return Zero on success. */ int -lilv_flock(FILE* file, bool lock); +lilv_flock(FILE* file, bool lock, bool block); /** Visit every file in the directory at `path`. |