CppMem: Locks
This lesson gives an overview of locks used in the context of CppMem.
We'll cover the following...
Both threads - thread1
and thread2
- use the same mutex, and they’re wrapped in a std::lock_guard
.
Access this course and 1400+ top-rated courses and projects.