diff --git a/Flow/Locking.swift b/Flow/Locking.swift index 3cce65f..5e06ef1 100644 --- a/Flow/Locking.swift +++ b/Flow/Locking.swift @@ -85,7 +85,7 @@ typealias PThreadMutex = UnsafeMutablePointer /// - Note: You have to explicity call `initialize()` before use (typically in a class init) and `deinitialize()` when done (typically in a class deinit) extension UnsafeMutablePointer where Pointee == pthread_mutex_t { - func initialize(as type: MutexType = .normal) { + func initialize(as type: MutexType = .recursive) { var attr = pthread_mutexattr_t() defer { pthread_mutexattr_destroy(&attr) } guard pthread_mutexattr_init(&attr) == 0 else {