thread-safe sglog initialization
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user