pub unsafe extern "C" fn svn_io_file_lock2(
lock_file: *const c_char,
exclusive: svn_boolean_t,
nonblocking: svn_boolean_t,
pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description
Lock file at @a lock_file. If @a exclusive is TRUE, obtain exclusive lock, otherwise obtain shared lock.
If @a nonblocking is TRUE, do not wait for the lock if it is not available: throw an error instead.
Lock will be automatically released when @a pool is cleared or destroyed. Use @a pool for memory allocations.
@since New in 1.1.