Skip to content

Commit e141f2a

Browse files
committed
Removed #if os(Android)
1 parent f5c7910 commit e141f2a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Foundation/Thread.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,7 @@ open class Thread : NSObject {
144144
}
145145

146146
internal var _main: () -> Void = {}
147-
#if os(Android)
148-
private var _thread = pthread_t()
149-
#else
150147
private var _thread: pthread_t? = nil
151-
#endif
152148

153149
#if CYGWIN
154150
internal var _attr : pthread_attr_t? = nil
@@ -206,15 +202,9 @@ open class Thread : NSObject {
206202

207203
open var name: String? {
208204
didSet {
209-
#if os(Android)
210-
if _thread == Thread.current._thread {
211-
_CFThreadSetName(_thread, name ?? "")
212-
}
213-
#else
214205
if let thread = _thread {
215206
_CFThreadSetName(thread, name ?? "" )
216207
}
217-
#endif
218208
}
219209
}
220210

0 commit comments

Comments
 (0)