POSIXReadWriteLock
public final class POSIXReadWriteLock : Locking
A readers-writer lock provided by the platform implementation of the POSIX Threads standard. Read more: https://en.wikipedia.org/wiki/POSIX_Threads
-
Create the standard platform lock.
Declaration
Swift
public init()
-
Declaration
Swift
public func withReadLock<Return>(_ body: () throws -> Return) rethrows -> Return
-
Declaration
Swift
public func withAttemptedReadLock<Return>(_ body: () throws -> Return) rethrows -> Return?
-
Declaration
Swift
public func withWriteLock<Return>(_ body: () throws -> Return) rethrows -> Return