Like lock, but returns false immediately if the lock is held by another process. Returns true if the specified region in the file was successfully locked.
See Implementation
Like lock, but returns false immediately if the lock is held by another process. Returns true if the specified region in the file was successfully locked.