[swift-users] Linux equivalent of macOS/iOS run loop, aka libdispatch/Dispatch on Linux
jon at jonshier.com
Wed Apr 5 15:32:30 CDT 2017
Dispatch equivalent should be dispatchMain(), unless that’s not available on Linux for some reason.
> On Apr 5, 2017, at 4:28 PM, Rick Mann via swift-users <swift-users at swift.org> wrote:
> I've got Swift and libdispatch installed and linking under Ubuntu 16.04, but I'm not sure how to set up the Linux equivalent of the macOS run loop in order to service all the dispatch queues.
> I'm having a hard time finding an example of how to do this. Some GCD C code calls dispatch_main() from the main thread after initial program setup. I couldn't find an equivalent in the Dispatch package, when looking through the sources.
> Can anyone tell me how to do this, or point me at an example?
> Rick Mann
> rmann at latencyzero.com
> swift-users mailing list
> swift-users at swift.org
More information about the swift-users