mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-11-30 17:18:42 +00:00
refactor: modernize standard library usage across six Sonar rules (#5930)
This commit is contained in:
1 parent
81a677c1ee
commit
80588defde
37 files changed
+464
-121
No files matched your search
+1
-1
@@ -2109,7 +2109,7 @@ namespace input {
|
||||
// the input to the OS. This avoids potentially lengthy lock contention
|
||||
// in the control stream thread while input is being processed by the OS.
|
||||
{
|
||||
std::lock_guard<std::mutex> lg(input->input_queue_lock);
|
||||
std::scoped_lock lg(input->input_queue_lock);
|
||||
|
||||
// If all entries have already been processed, nothing to do
|
||||
if (input->input_queue.empty()) {
|
||||
|
||||
Reference in new issue
Block a user