mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-26 19:30:21 +00:00
Fix release fence in Singleton::Ref (GH #1208)
This commit is contained in:
parent
e6f1f81319
commit
a23f78d116
2
misc.h
2
misc.h
@ -346,8 +346,8 @@ template <class T, class F, int instance>
|
||||
return *p;
|
||||
|
||||
T *newObject = m_objectFactory();
|
||||
s_pObject.store(newObject, std::memory_order_relaxed);
|
||||
std::atomic_thread_fence(std::memory_order_release);
|
||||
s_pObject.store(newObject, std::memory_order_relaxed);
|
||||
|
||||
return *newObject;
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user