Re:C++11/14/17 Features in VS 2015 RC
by comex on Wednesday April 29, 2015 @07:19PM
(#9462467)
In C++ you can use std::thread for this purpose. In C, in theory C11 thrd_* would be better to implement than pthreads, since it's been standardized... too bad none of the major platforms support it in their default libcs, so Windows implementing it wouldn't actually improve portability. If Windows implements pthreads, maybe there'll be a C1y that removes thrd_* from the standard and just standardizes pthreads. That'd be funny.
[ Parent
| on HN ]
Funny, but VS2013 has <thr/xthreads.h> header that pretty much is C11 <threads.h> implementation. Just with a bit different naming of symbols. And not sure if it is 100% compatible.
Re:C++11/14/17 Features in VS 2015 RC
by StephanTLavavej on Wednesday April 29, 2015 @07:38PM
(#9462551)
<thr/xthreads.h> is internal and unsupported; please don't use it.