thread-safe sglog initialization

This commit is contained in:
Mamadou Babaei
2025-06-04 02:26:03 +02:00
parent 69e1418b2c
commit 098ed35d07
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -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
+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