mpd/src/storage/plugins
Rosen Penev 4e0e4c00bf treewide: replace lock_guard with scoped_lock
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: Rosen Penev <rosenp@gmail.com>
2021-11-11 17:13:03 -08:00
..
CurlStorage.cxx treewide: replace lock_guard with scoped_lock 2021-11-11 17:13:03 -08:00
CurlStorage.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
LocalStorage.cxx storage/Plugin: add "prefixes" 2021-10-06 20:14:01 +02:00
LocalStorage.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
meson.build meson.build: add missing libfmt dependencies 2021-10-15 14:26:59 +02:00
NfsStorage.cxx treewide: replace lock_guard with scoped_lock 2021-11-11 17:13:03 -08:00
NfsStorage.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
SmbclientStorage.cxx treewide: replace lock_guard with scoped_lock 2021-11-11 17:13:03 -08:00
SmbclientStorage.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
UdisksStorage.cxx treewide: replace lock_guard with scoped_lock 2021-11-11 17:13:03 -08:00
UdisksStorage.hxx copyright year 2021 2021-01-01 19:54:28 +01:00