Re:LibPhenom, a high-performance C eventing framework from F...
by IPGlider on Monday September 16, 2013 @07:25PM
(#6396570)
libdispatch works on FreeBSD (https://wiki.freebsd.org/GCD) and on Linux (http://packages.debian.org/wheezy/libdispatch-dev), but I don't know if blocks works on Linux.
[ Parent
| on HN ]
Re:LibPhenom, a high-performance C eventing framework from F...
by Moto7451 on Monday September 16, 2013 @08:25PM
(#6396830)
If you use clang you get blocks:
http://stackoverflow.com/questions/5907071/clang-block-in-li...
Re:LibPhenom, a high-performance C eventing framework from F...
by throwaway812 on Monday September 16, 2013 @09:33PM
(#6397073)
The 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.
Re:LibPhenom, a high-performance C eventing framework from F...
by fyolnish on Monday September 16, 2013 @10:54PM
(#6397312)
Grand 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
Re:LibPhenom, a high-performance C eventing framework from F...
by throwaway812 on Tuesday September 17, 2013 @10:22AM
(#6399417)
Yes, so there's absolutely no reason to use it if you're primarily targeting Linux.