Use async logging while streaming only

The benefits of reliable output outweigh performance concerns during non-streaming activities.
This commit is contained in:
Cameron Gutman
2025-10-25 00:18:34 -05:00
parent b1232e0ed4
commit bd6235efba
4 changed files with 49 additions and 2 deletions

View File

@@ -417,3 +417,15 @@ int StreamUtils::getDrmFd(bool preferRenderNode)
return -1;
}
extern QAtomicInt g_AsyncLoggingEnabled;
void StreamUtils::enterAsyncLoggingMode()
{
g_AsyncLoggingEnabled.ref();
}
void StreamUtils::exitAsyncLoggingMode()
{
g_AsyncLoggingEnabled.deref();
}