thread-safe sglog initialization

This commit is contained in:
Mamadou Babaei
2025-06-03 07:11:32 +02:00
parent e74a664312
commit 6daca65cd5
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -34,8 +34,10 @@
#include "SGLog/SGLog.h"
#include "Containers/Map.h"
#include "Logging/LogMacros.h"
#include "Templates/Atomic.h"
DEFINE_LOG_CATEGORY(LogEditor)
DEFINE_LOG_CATEGORY(LogGeneric)
@@ -60,7 +62,7 @@ struct FSGLogCore::FStaticImpl
TMap<FSGLogCore::EVerbosity, VerbosityMapper> VerbosityMap;
bool bInitialized;
TAtomic<bool> bInitialized;
/************************
* Constructor / Destructor