Appendix C. Multithreading

Neither the C++ standard nor the Library Technical Report says much about multithreaded applications, in part because most programs do not need to be multithreaded, and most programmers should not be writing multithreaded code. For those uncommon cases in which multithreading is appropriate, however, it’s important to understand what you need to do to use the standard C++ library and the TR1 library components safely in a multithreaded application (Section C.1). Remember, though, that none of this is required by either the C++ standard or the Library Technical Report but instead reflects the general concensus on how to design libraries for use in multithreaded applications (Section C.2). Always check your library’s ...

Get The C++ Standard Library Extensions A Tutorial and Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.