Clears a lock. # Parameters - `file`: The file to clear all locks for [`LockType`]. - `granularity`: The [`LockGranularity`].
(file: &Fd, granularity: LockGranularity)
| 224 | /// - `file`: The file to clear all locks for [`LockType`]. |
| 225 | /// - `granularity`: The [`LockGranularity`]. |
| 226 | pub fn clear_lock<Fd: AsRawFd>(file: &Fd, granularity: LockGranularity) -> Result<(), LockError> { |
| 227 | try_acquire_lock(file, LockType::Unlock, granularity) |
| 228 | } |
| 229 | |
| 230 | /// Returns the current lock state using [`fcntl`] with respect to the given |
| 231 | /// parameters. |
no test coverage detected