How is the standard std :: thread?

I noticed that many of the classic C ++ link sources that have been updated for C ++ 11, like cplusplus.com and the Josuttis Standard Library Reference , do not seem to contain any documentation whatsoever on the C ++ 11 standard concurrency library functions, such as std::thread, std::atomicand std::async.

Are these concurrency functions somehow "less standard" than other standard libraries? Or is the documentation simply missing for some other reason?

+5
source share
1 answer

All the libraries you referenced are indeed part of the C ++ 11 standard. In fact, many language rules have been redesigned to describe how operations work in a multi-threaded environment (previously the specification did not specify any semantics for how the threads would work )

I can’t say why the documentation on these sites is not enough, because I don’t know who runs them, but streams, atoms, etc., of course, are part of C ++ 11.

In the corresponding note, I would strongly suggest not using cplusplus.com as a link. It is known that in the past there were some inaccuracies, and other sites (namely cppreference.com) are much more complete and accurate.

Hope this helps!

+10
source

All Articles