CppMem: Locks
This lesson gives an overview of locks used in the context of CppMem.
Both threads - thread1
and thread2
- use the same mutex, and they’re wrapped in a std::lock_guard
.
Get hands-on with 1400+ tech skills courses.
This lesson gives an overview of locks used in the context of CppMem.
Both threads - thread1
and thread2
- use the same mutex, and they’re wrapped in a std::lock_guard
.
Get hands-on with 1400+ tech skills courses.