mirror of https://github.com/PCSX2/pcsx2.git
common: relax atomic of m_IsBeingDeleted
Avoid the memory fence in the constructor
This commit is contained in:
parent
086dfc8a14
commit
812e41d578
|
@ -66,7 +66,7 @@ BaseDeletableObject::BaseDeletableObject()
|
||||||
//pxAssertDev( _CrtIsValidHeapPointer( this ), "BaseDeletableObject types cannot be created on the stack or as temporaries!" );
|
//pxAssertDev( _CrtIsValidHeapPointer( this ), "BaseDeletableObject types cannot be created on the stack or as temporaries!" );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
m_IsBeingDeleted = false;
|
m_IsBeingDeleted.store(false, std::memory_order_relaxed);
|
||||||
}
|
}
|
||||||
|
|
||||||
BaseDeletableObject::~BaseDeletableObject() throw()
|
BaseDeletableObject::~BaseDeletableObject() throw()
|
||||||
|
|
Loading…
Reference in New Issue