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 175a92d commit cf07aceCopy full SHA for cf07ace
Sources/Foundation/NSLock.swift
@@ -50,7 +50,7 @@ private typealias _ConditionVariablePointer = UnsafeMutablePointer<pthread_cond_
50
#endif
51
52
// fix for: https://github.com/apple/swift-corelibs-foundation/issues/4941
53
-open class NSLock: NSObject, NSLocking, Sendable {
+open class NSLock: NSObject, NSLocking, @unchecked 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