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 f5c7910 commit e141f2aCopy full SHA for e141f2a
Foundation/Thread.swift
@@ -144,11 +144,7 @@ open class Thread : NSObject {
144
}
145
146
internal var _main: () -> Void = {}
147
-#if os(Android)
148
- private var _thread = pthread_t()
149
-#else
150
private var _thread: pthread_t? = nil
151
-#endif
152
153
#if CYGWIN
154
internal var _attr : pthread_attr_t? = nil
@@ -206,15 +202,9 @@ open class Thread : NSObject {
206
202
207
203
open var name: String? {
208
204
didSet {
209
210
- if _thread == Thread.current._thread {
211
- _CFThreadSetName(_thread, name ?? "")
212
- }
213
214
205
if let thread = _thread {
215
_CFThreadSetName(thread, name ?? "" )
216
217
218
219
220
0 commit comments