void fs_flockfile (FS_FILE *p_file);
File |
Called from |
Code enabled by |
fs_api..c |
Application |
|
Acquire task ownership of a file.
Arguments
p_file
Pointer to a file.
Returned Value
None.
Notes/Warnings
A lock count is associated with each file:
fs_flockfile()
is called, if……the lock count will be incremented and the caller will own the file. Otherwise, the caller will wait until the lock count returns to zero.
fs_funlockfile()
incremenets the lock count.fs_flockfile()
(or fs_ftrylockfile()
) and fs_funlockfile()
can be nested.