Hacker News new | past | comments | ask | show | jobs | submit login

I agree, OP could have used the C11 feature, <threads.h>



To be fair, you'll probably have better luck finding people who can compile it if you use pthreads.h vs. threads.h. IIRC glibc doesn't have threads.h implemented, and I don't know of any C standard libraries that do. pthreads is fairly universal even if it's not standard C, and at the very least it's much more universal then threads.h is at the moment.


Musl libc will have one in the next release it seems. It is the only one I know of.


Correct, I was just going to chime in about this. Musl is very impressive with its compact size, correctness, Drepper-less-ness =P, and speed of implementing new standards.

http://thread.gmane.org/gmane.linux.lib.musl.general/5952


Pelles IDE has full C11 support.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: