Quick A: Use lock_guard
by default especially in local scopes, and unique_lock
if you need its extra features.
std::unique_lock<std::mutex> or std::lock_guard<std::mutex>?
[...] What is the difference between the two and which one should I use in which use case ?
Add a Comment
Comments are closed.