exclusiveLock
Indicates that opening the file atomically obtains an exclusive lock.
Declaration
static var exclusiveLock: FileDescriptor.OpenOptions { get }Mentioned in
Discussion
Setting this option or the sharedLock option. obtains a lock with flock(2) semantics. If you’re creating a file using the create option, the request for the lock always succeeds except on file systems that don’t support locking.
The corresponding C constant is O_EXLOCK.