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.
2 parents ca0e984 + 1a546a9 commit c992957Copy full SHA for c992957
stdlib/public/Observation/Sources/Observation/Locking.swift
@@ -34,7 +34,15 @@ internal struct Lock {
34
#if canImport(Darwin)
35
typealias Primitive = os_unfair_lock
36
#elseif canImport(Glibc) || canImport(Musl) || canImport(Bionic)
37
+ #if os(FreeBSD) || os(OpenBSD)
38
+ // BSD libc does not annotate the nullability of pthread APIs.
39
+ // We should replace this with the appropriate API note in the platform
40
+ // overlay.
41
+ // https://github.com/swiftlang/swift/issues/81407
42
+ typealias Primitive = pthread_mutex_t?
43
+ #else
44
typealias Primitive = pthread_mutex_t
45
+ #endif
46
#elseif canImport(WinSDK)
47
typealias Primitive = SRWLOCK
48
#elseif arch(wasm32)
0 commit comments