mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 08:39:19 +02:00
refactor(sonar): use std::scoped_lock instead of std::lock_guard (cpp:S5997)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -125,7 +125,7 @@ void python_screen_viewer::threadfunc()
|
||||
int height;
|
||||
|
||||
if (!Global.python_sharectx) {
|
||||
std::lock_guard<std::mutex> guard(m_rt->mutex);
|
||||
std::scoped_lock guard(m_rt->mutex);
|
||||
|
||||
if (window->timestamp == m_rt->timestamp)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user