common: relax atomic of m_IsBeingDeleted

Avoid the memory fence in the constructor
This commit is contained in:
Gregory Hainaut 2016-07-06 20:15:22 +02:00
parent 086dfc8a14
commit 812e41d578
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ BaseDeletableObject::BaseDeletableObject()
//pxAssertDev( _CrtIsValidHeapPointer( this ), "BaseDeletableObject types cannot be created on the stack or as temporaries!" );
#endif
m_IsBeingDeleted = false;
m_IsBeingDeleted.store(false, std::memory_order_relaxed);
}
BaseDeletableObject::~BaseDeletableObject() throw()