Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for LockFileEx (0.19 sec)

  1. internal/lock/lock_windows.go

    	if fd == syscall.InvalidHandle {
    		return nil
    	}
    
    	err := lockFileEx(fd, flags, 1, 0, &syscall.Overlapped{})
    	if err == nil || err == errLockViolation {
    		return nil
    	}
    	if err.Error() == "The process cannot access the file because another process has locked a portion of the file." {
    		return ErrAlreadyLocked
    	}
    	return err
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 7.9K bytes
    - Viewed (0)
Back to top