• 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
..
alsa Loading commit data...
cdio Loading commit data...
chromaprint Loading commit data...
crypto Loading commit data...
curl Loading commit data...
dbus Loading commit data...
expat Loading commit data...
ffmpeg Loading commit data...
fmt Loading commit data...
gcrypt Loading commit data...
icu Loading commit data...
jack Loading commit data...
nfs Loading commit data...
oss Loading commit data...
pcre Loading commit data...
pipewire Loading commit data...
pulse Loading commit data...
smbclient Loading commit data...
sndio Loading commit data...
sqlite Loading commit data...
systemd Loading commit data...
upnp Loading commit data...
xiph Loading commit data...
yajl Loading commit data...
zlib Loading commit data...