Closed daleglass closed 2 weeks ago
/home/dale/git/overte/libraries/recording/src/recording/RecordingScriptingInterface.cpp:41:11: warning: unnecessary parentheses in declaration of ‘_mutex’ [-Wparentheses] 41 | Locker(_mutex); | ^~~~~~~~
I'm a bit confused about what's going on here. Locker works out to std::unique_lock<Mutex>;
std::unique_lock<Mutex>;
Shouldn't we be using std::lock_guard guard(_mutex) here?
std::lock_guard guard(_mutex)
I think it needs to be ‘Locker lock(_mutex)’ and the mutex needs to be mutable. I will include this in a follow up PR for a bunch of the remaining warnings
I'm a bit confused about what's going on here. Locker works out to
std::unique_lock<Mutex>;
Shouldn't we be using
std::lock_guard guard(_mutex)
here?