thread-safe sglog initialization
This commit is contained in:
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Bumped the SenseGlove libraries to `v2.203.0-f3d3e676`.
|
||||
- SenseGlove libraries have migrated to `C++20` from `C++17`.
|
||||
- Revamped the `SGLog` logging utility class to use `TUniquePtr` instead of `std::unique_ptr`.
|
||||
- `SGLog` now relies on `TAtomic<bool>` for thread-safe initialization.
|
||||
- Bumped the SenseGlove Unreal Engine Marketplace Packager `v0.6.0-4108c6f`.
|
||||
|
||||
### Fixed
|
||||
|
||||
@@ -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