(C++) std::mutex

February 24, 2017 · View on GitHub

 

 

 

 

 

(C++) C++11 std::mutex

 

std::mutex is a data type available from the C++11 STL.

 

std::mutex is a used a multi-threaded applications to prevent data races. See std::thread example 2: two counting threads using std::mutex for an example.