Skip to content

Commit f637883

Browse files
committed
Back to Dispatch on OS X
1 parent 4fe5547 commit f637883

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

ExecutionContext/DefaultExecutionContext.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616

1717
import 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

2929
public protocol DefaultExecutionContextType : ExecutionContextType {
3030
init(kind:ExecutionContextKind)

ExecutionContext/LoopSemaphore.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)