mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 15:35:50 +00:00
Fix SharedSingleton to use memoryBarrier
This commit is contained in:
@@ -92,6 +92,7 @@ public:
|
||||
bassert (lifetime == SingletonLifetime::createOnDemand || ! staticData.destructorCalled);
|
||||
staticData.instance = &staticData.object;
|
||||
new (staticData.instance) SharedSingleton (lifetime);
|
||||
memoryBarrier();
|
||||
instance = staticData.instance;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user