45
edits
Changes
→Synchronization
=====C++ 11=====
The C++ 11 thread libraries provide the mutex and the atomic classes which to support mutual exclusion. <br>
The mutex class is a synchronization primitive that can be used to protect shared data from being accessed by multiple threads.
std::mutex is usually not accessed directly, instead std::unique_lock and std::lock_guard are used to manage locking.