mpd/src/thread
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
..
Cond.hxx thread/{Mutex,Cond}: use std::mutex and std::condition_variable 2019-05-07 19:57:53 +02:00
CriticalSection.hxx win32, ...: avoid including windows.h 2021-05-19 17:25:32 +02:00
Future.hxx thread: Add Future implement for mingw32 without pthread 2021-03-04 18:26:46 +01:00
Id.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
meson.build meson.build: remove the libwinpthread-1.dll dependency on Windows 2019-03-14 20:07:06 +01:00
Mutex.hxx remove extra semicolon 2020-03-16 00:13:20 -07:00
Name.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
SafeSingleton.hxx treewide: replace lock_guard with scoped_lock 2021-11-11 17:13:03 -08:00
Slack.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
Thread.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
Thread.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
Util.cxx remove some more extra semicolons 2020-03-16 13:37:13 -07:00
Util.hxx thread/*: add "noexcept" 2017-11-26 11:58:53 +01:00
WindowsCond.hxx win32, ...: avoid including windows.h 2021-05-19 17:25:32 +02:00
WindowsFuture.hxx thread/WindowsFuture: include cleanup 2021-03-05 13:50:16 +01:00