thread-safe sglog initialization

This commit is contained in:
Mamadou Babaei
2025-06-04 02:23:58 +02:00
parent 9682585c00
commit 076a07bc7b
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