4 ms·
A threading interface was standardized into C 2011, so pthreads should eventually stop being necessary. In a sense, not just POSIX, but C proper has adopted a t
by pavpanchekha 12y ago
A threading interface was standardized into C 2011, so pthreads should eventually stop being necessary. In a sense, not just POSIX, but C proper has adopted a threading interface.
- quotemstr 12y agoThe C threads interface is missing important functionality --- priority inheritance and static mutex initializers come to mind. C11 threads.h is a lowest-common-denominator portability shim, not a general-purpose pthreads replacement.
- coder23 12y agothreads.h are the lowest common denominator. If you want system specific functionality you can always wrap those functions. Static mutex init can be emulated with call_once() function, with some limitations of its own of course.