Skip to content

Commit 937489a

Browse files
committed
Merge pull request #6 from ypopovych/master
OS X pthread fixes
2 parents 14550e1 + 1c0b891 commit 937489a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ExecutionContext/ExecutionContext.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ public func sleep(timeout:Double) {
161161
}
162162

163163
@noreturn public func executionContextMain() {
164-
#if os(Linux)
164+
//#if os(Linux)
165165
RunLoop.runForever()
166-
#else
167-
dispatch_main()
168-
#endif
166+
//#else
167+
// dispatch_main()
168+
//#endif
169169
}

ExecutionContext/RunLoop.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ import CoreFoundation
171171
if CFRunLoopSourceIsValid(crls) {
172172
CFRunLoopAddSource(cfRunLoop, crls, mode.cfString)
173173
rls.info.runLoops.append(self)
174-
CFRunLoopSourceSignal(unsafeBitCast(rls.cfObject, CFRunLoopSource.self))
174+
CFRunLoopSourceSignal(crls)
175175
CFRunLoopWakeUp(cfRunLoop)
176176
}
177177
}

0 commit comments

Comments
 (0)