4 ms·
Yes, you are right std::thread is a library. I meant to write "provided by an external library". But I won't edit my original comment as doing so would take-awa
by 16s 15y ago
Yes, you are right std::thread is a library. I meant to write "provided by an external library". But I won't edit my original comment as doing so would take-away from your response.
I see std::thread as a great first step. The richer abstractions will come later, but I think discounting std::thread is unwise. It's a great advance for C++.
- scott_s 15y agoLibraries are the same no matter what namespace they live in [1]. The C++ compiler does not give special treatment to the libraries in std::. So there's no different between "external" libraries and libraries specified by the standard. [1] I suspect that most of the compilers will make the std::atomic_* interface (http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2427.html http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n242...) compile down to compiler intrinsics, but the interface will still be just a template library.