3 ms·
libdispatch works on FreeBSD (https://wiki.freebsd.org/GCD https://wiki.freebsd.org/GCD) and on Linux (http://packages.debian.org/wheezy/libdispatch-dev http://
by IPGlider 13y ago
libdispatch works on FreeBSD (https://wiki.freebsd.org/GCD https://wiki.freebsd.org/GCD) and on Linux (http://packages.debian.org/wheezy/libdispatch-dev http://packages.debian.org/wheezy/libdispatch-dev), but I don't know if blocks works on Linux.
- Moto7451 13y agoIf you use clang you get blocks: http://stackoverflow.com/questions/5907071/clang-block-in-linux http://stackoverflow.com/questions/5907071/clang-block-in-li...
- throwaway812 13y agoThe library may work, but Grand Central Dispatch, which is the whole point, is really an OS X thing. BSD may have adopted it, not sure. I'm pretty that confident Linux has not.
- fyolnish 13y agoGrand Central Dispatch is just the marketing name for libdispatch. The do use pthread work queues if available, which they are on OSX & BSD. On linux a thread pool is used
- throwaway812 13y agoYes, so there's absolutely no reason to use it if you're primarily targeting Linux.