unique_lock has the overhead of tracking ownership status and the owner.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
std::condition_variable::wait requires unique_lock, but in other methods lock_guard should be enough,
I guess unique_lock is now there simply because of code copy-paste. So this change is LGTM.
Please wait for another opinion though, just in case.