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

Migration cleanup and renderer documentation

This commit is contained in:
2026-10-15 19:05:35 +02:00
parent c77151979a
commit f47172f34d
18 changed files with 310 additions and 90 deletions

View File

@@ -77,8 +77,11 @@ std::mutex logMutex;
void LogService()
{
while (!Global.applicationQuitOrder)
bool quitting{false};
while (!quitting)
{
// read before the stacks are drained, so everything logged before the quit order still gets written
quitting = Global.applicationQuitOrder;
{
// --- Obsługa InfoStack ---
while (!InfoStack.empty())
@@ -144,7 +147,8 @@ void LogService()
}
}
std::this_thread::sleep_for(std::chrono::milliseconds(50));
if (!quitting)
std::this_thread::sleep_for(std::chrono::milliseconds(50));
}
}