This commit is contained in:
Nuno Cruces
2024-12-12 12:57:18 +00:00
parent 37f2145588
commit 5ed4a6cb9d
6 changed files with 129 additions and 5 deletions

View File

@@ -45,6 +45,7 @@ func osGetExclusiveLock(file *os.File, state *LockLevel) _ErrorCode {
osUnlock(file, _SHARED_FIRST, _SHARED_SIZE)
// Acquire the EXCLUSIVE lock.
// Can't wait here, because the file is not OVERLAPPED.
rc := osWriteLock(file, _SHARED_FIRST, _SHARED_SIZE, 0)
if rc != _OK {