• Rosen Penev's avatar
    treewide: replace lock_guard with scoped_lock · 4e0e4c00
    Rosen Penev authored
    SonarLint reports the latter to be better:
    
    std::scoped_lock basically provides the same feature as std::lock_guard,
    but is more generic: It can lock several mutexes at the same time, with a
    deadlock prevention mechanism (see {rule:cpp:S5524}). The equivalent code
    to perform simultaneous locking with std::lock_guard is significantly more
    complex. Therefore, it is simpler to use std::scoped_lock all the time,
    even when locking only one mutex (there will be no performance impact).
    Signed-off-by: 's avatarRosen Penev <rosenp@gmail.com>
    4e0e4c00
Name
Last commit
Last update
..
plugins Loading commit data...
Client.hxx Loading commit data...
Control.cxx Loading commit data...
Control.hxx Loading commit data...
Defaults.cxx Loading commit data...
Defaults.hxx Loading commit data...
Domain.cxx Loading commit data...
Domain.hxx Loading commit data...
Error.hxx Loading commit data...
Filtered.cxx Loading commit data...
Filtered.hxx Loading commit data...
Finish.cxx Loading commit data...
Init.cxx Loading commit data...
Interface.cxx Loading commit data...
Interface.hxx Loading commit data...
MultipleOutputs.cxx Loading commit data...
MultipleOutputs.hxx Loading commit data...
OutputAPI.hxx Loading commit data...
OutputCommand.cxx Loading commit data...
OutputCommand.hxx Loading commit data...
OutputPlugin.cxx Loading commit data...
OutputPlugin.hxx Loading commit data...
Print.cxx Loading commit data...
Print.hxx Loading commit data...
Registry.cxx Loading commit data...
Registry.hxx Loading commit data...
SharedPipeConsumer.cxx Loading commit data...
SharedPipeConsumer.hxx Loading commit data...
Source.cxx Loading commit data...
Source.hxx Loading commit data...
State.cxx Loading commit data...
State.hxx Loading commit data...
Thread.cxx Loading commit data...
Timer.cxx Loading commit data...
Timer.hxx Loading commit data...
meson.build Loading commit data...