Skip to content

Commit cf07ace

Browse files
committed
@unchecked Sendable for NSLock
1 parent 175a92d commit cf07ace

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Foundation/NSLock.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ private typealias _ConditionVariablePointer = UnsafeMutablePointer<pthread_cond_
5050
#endif
5151

5252
// fix for: https://github.com/apple/swift-corelibs-foundation/issues/4941
53-
open class NSLock: NSObject, NSLocking, Sendable {
53+
open class NSLock: NSObject, NSLocking, @unchecked Sendable {
5454
internal var mutex = _MutexPointer.allocate(capacity: 1)
5555
#if os(macOS) || os(iOS) || os(Windows)
5656
private var timeoutCond = _ConditionVariablePointer.allocate(capacity: 1)

0 commit comments

Comments
 (0)