RecursiveMutex
public class RecursiveMutex: Lockable
Swift wrapper class for pthread_mutex_t.
Note that this is a recursive version.
Seealso
Locakble-
See moreRecursiveMutexerrors.Declaration
Swift
public enum Error: Swift.Error -
Initializes a recursive mutex object.
Throws
RecursiveMutex.Erroron failure.Declaration
Swift
public required init() throws -
Locks the recursive mutex.
Declaration
Swift
public func lock() -
Unlocks the recursive mutex.
Declaration
Swift
public func unlock() -
Tries to lock the recursive mutex.
Declaration
Swift
public func tryLock() -> BoolReturn Value
trueif the recursive mutex was successfully locked, otherwisefalse.
View on GitHub
RecursiveMutex Class Reference