5 ms·
Functionality: Well, libdispatch doesn't really work outside of OS X, and this is primarily targeted at Linux server apps. I can't comment on performance.
by throwaway812 13y ago
Functionality: Well, libdispatch doesn't really work outside of OS X, and this is primarily targeted at Linux server apps.
I can't comment on performance.
- IPGlider 13y agolibdispatch 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.
- petsos 13y agoAlso, it doesn't look very active: https://libdispatch.macosforge.org/trac/log/ https://libdispatch.macosforge.org/trac/log/