File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 16
16
17
17
import Foundation
18
18
19
- // #if os(Linux)
19
+ #if os(Linux)
20
20
21
21
public typealias DefaultExecutionContext = PThreadExecutionContext
22
22
23
- /* #else
23
+ #else
24
24
25
25
public typealias DefaultExecutionContext = DispatchExecutionContext
26
26
27
- #endif*/
27
+ #endif
28
28
29
29
public protocol DefaultExecutionContextType : ExecutionContextType {
30
30
init ( kind: ExecutionContextKind )
Original file line number Diff line number Diff line change @@ -144,4 +144,8 @@ public class CFRunLoopSemaphore : SemaphoreType {
144
144
}
145
145
}
146
146
147
- public typealias LoopSemaphore = CFRunLoopSemaphore
147
+ #if os(Linux)
148
+ public typealias LoopSemaphore = CFRunLoopSemaphore
149
+ #else
150
+ public typealias LoopSemaphore = DispatchLoopSemaphore
151
+ #endif
You can’t perform that action at this time.
0 commit comments