Merge branch 'development' into redcode/crythread-2nd-pass
Signed-off-by: AMZN-ScottR <24445312+AMZN-ScottR@users.noreply.github.com>
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
|
||||
#include <platform.h>
|
||||
#include <type_traits>
|
||||
#include <MultiThread.h>
|
||||
|
||||
void CryFatalError(const char*, ...) PRINTF_PARAMS(1, 2);
|
||||
#if defined(APPLE)
|
||||
@@ -174,13 +175,13 @@ public:
|
||||
|
||||
void AddRef()
|
||||
{
|
||||
CHECK_REFCOUNT_CRASH(m_nRefCounter >= 0);
|
||||
AZ_Assert(m_nRefCounter >= 0, "Invalid ref count");
|
||||
++m_nRefCounter;
|
||||
}
|
||||
|
||||
void Release()
|
||||
{
|
||||
CHECK_REFCOUNT_CRASH(m_nRefCounter > 0);
|
||||
AZ_Assert(m_nRefCounter > 0, "Invalid ref count");
|
||||
if (--m_nRefCounter == 0)
|
||||
{
|
||||
delete static_cast<TDerived*>(this);
|
||||
@@ -218,13 +219,13 @@ public:
|
||||
|
||||
void AddRef()
|
||||
{
|
||||
CHECK_REFCOUNT_CRASH(m_nRefCounter >= 0);
|
||||
AZ_Assert(m_nRefCounter >= 0, "Invalid ref count");
|
||||
++m_nRefCounter;
|
||||
}
|
||||
|
||||
void Release()
|
||||
{
|
||||
CHECK_REFCOUNT_CRASH(m_nRefCounter > 0);
|
||||
AZ_Assert(m_nRefCounter > 0, "Invalid ref count");
|
||||
if (--m_nRefCounter == 0)
|
||||
{
|
||||
delete this;
|
||||
@@ -275,13 +276,13 @@ public:
|
||||
|
||||
void AddRef()
|
||||
{
|
||||
CHECK_REFCOUNT_CRASH(m_nRefCounter >= 0);
|
||||
AZ_Assert(m_nRefCounter >= 0, "Invalid ref count");
|
||||
++m_nRefCounter;
|
||||
}
|
||||
|
||||
void Release()
|
||||
{
|
||||
CHECK_REFCOUNT_CRASH(m_nRefCounter > 0);
|
||||
AZ_Assert(m_nRefCounter > 0, "Invalid ref count");
|
||||
if (--m_nRefCounter == 0)
|
||||
{
|
||||
assert(m_pDeleteFnc);
|
||||
|
||||
Reference in New Issue
Block a user