¡@

Home 

c++ Programming Glossary: lock2

Massive CPU load using std::lock (c++11)

http://stackoverflow.com/questions/13667810/massive-cpu-load-using-stdlock-c11

lock1 mutex1 std defer_lock std unique_lock std mutex lock2 mutex2 std defer_lock std lock lock1 lock2 Another part of the.. std mutex lock2 mutex2 std defer_lock std lock lock1 lock2 Another part of the class uses a std condition_variable with.. std mutex lock1 mutex1 std unique_lock std mutex lock2 mutex2 brought the CPU usage down to normal 1 2 . I Cant believe..