int fs_ftrylockfile (FS_FILE *p_file);
File | Called from | Code enabled by |
---|---|---|
| Application |
|
Acquire task ownership of a file (if available).
Arguments
p_file
Pointer to a file.
Returned Value
0, if no error occurs and the file lock is acquired.
Non-zero value, otherwise.
Notes/Warnings
fs_ftrylockfile()
is the non-blocking version offs_flockfile()
; if the lock is not available, the function returns an error.- See
fs_flockfile()
.