Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) C++11 std::lock_guard

 

std::lock_guard is a threading class to own a std::mutex up until it goes out of scope.

 

See std::thread example 2: two counting threads using std::mutex for an example use of std::lock_guard.

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict