We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2acfe40 commit 04646dbCopy full SHA for 04646db
1 file changed
Sources/OpenObservation/ThreadLocal.swift
@@ -18,8 +18,9 @@ func _tlsGet() -> UnsafeMutableRawPointer?
18
@_silgen_name("_swift_openobservation_tls_set")
19
func _tlsSet(_ value: UnsafeMutableRawPointer?)
20
21
-struct _ThreadLocal {
22
- static var value: UnsafeMutableRawPointer? {
+@_spi(OpenSwiftUI)
+public struct _ThreadLocal {
23
+ public static var value: UnsafeMutableRawPointer? {
24
get {
25
return _tlsGet()
26
}
@@ -46,8 +47,9 @@ import Bionic
46
47
#error("Unsupported platform")
48
#endif
49
50
51
52
53
54
#if canImport(Darwin)
55
return pthread_getspecific(key.key)
0 commit comments