7 #include <aws/common/assert.h>
39 m_strongPtr =
static_cast<T *
>(
this)->shared_from_this();
48 std::shared_ptr<T> tmpStrongPtr;
51 AWS_ASSERT(m_count > 0 &&
"refcount has gone negative");
54 std::swap(m_strongPtr, tmpStrongPtr);
64 std::shared_ptr<T> m_strongPtr;
Definition: RefCounted.h:28
void AcquireRef()
Definition: RefCounted.h:34
~RefCounted()
Definition: RefCounted.h:32
RefCounted()
Definition: RefCounted.h:31
void ReleaseRef()
Definition: RefCounted.h:44
Definition: Allocator.h:10