17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 03:59:19 +02:00

fix(sonar): addressing reliability/security issues

This commit is contained in:
jerrrrycho
2026-10-03 21:52:10 +02:00
parent d88fa5d8e2
commit 3ab3cdeb2d
10 changed files with 111 additions and 107 deletions

View File

@@ -89,7 +89,7 @@ void LogService()
std::string msg;
bool isError;
{
std::lock_guard<std::mutex> lock(logMutex);
std::scoped_lock lock(logMutex);
msg = InfoStack.front().first;
isError = InfoStack.front().second;
InfoStack.pop_front();
@@ -127,7 +127,7 @@ void LogService()
{
std::string msg;
{
std::lock_guard<std::mutex> lock(logMutex);
std::scoped_lock lock(logMutex);
msg = ErrorStack.front();
ErrorStack.pop_front();
}