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 1616
1717import Foundation
1818
19- // #if os(Linux)
19+ #if os(Linux)
2020
2121 public typealias DefaultExecutionContext = PThreadExecutionContext
2222
23- /* #else
23+ #else
2424
2525 public typealias DefaultExecutionContext = DispatchExecutionContext
2626
27- #endif*/
27+ #endif
2828
2929public protocol DefaultExecutionContextType : ExecutionContextType {
3030 init ( kind: ExecutionContextKind )
Original file line number Diff line number Diff line change @@ -144,4 +144,8 @@ public class CFRunLoopSemaphore : SemaphoreType {
144144 }
145145}
146146
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