We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77af9c5 commit 175a92dCopy full SHA for 175a92d
Sources/Foundation/NSLock.swift
@@ -49,7 +49,8 @@ private typealias _RecursiveMutexPointer = UnsafeMutablePointer<pthread_mutex_t>
49
private typealias _ConditionVariablePointer = UnsafeMutablePointer<pthread_cond_t>
50
#endif
51
52
-open class NSLock: NSObject, NSLocking {
+// fix for: https://github.com/apple/swift-corelibs-foundation/issues/4941
53
+open class NSLock: NSObject, NSLocking, Sendable {
54
internal var mutex = _MutexPointer.allocate(capacity: 1)
55
#if os(macOS) || os(iOS) || os(Windows)
56
private var timeoutCond = _ConditionVariablePointer.allocate(capacity: 1)
0 commit comments