Lines Matching defs:m_state
152 SharedPtrStateBase* m_state;
192 SharedPtrStateBase* m_state;
205 , m_state (DE_NULL)
222 , m_state (DE_NULL)
227 m_state = new SharedPtrState<T, DefaultDeleter<T> >(ptr, DefaultDeleter<T>());
228 m_state->strongRefCount = 1;
229 m_state->weakRefCount = 1;
234 delete m_state;
258 , m_state (DE_NULL)
263 m_state = new SharedPtrState<T, Deleter>(ptr, deleter);
264 m_state->strongRefCount = 1;
265 m_state->weakRefCount = 1;
270 delete m_state;
282 , m_state (other.m_state)
297 , m_state (other.m_state)
312 , m_state (DE_NULL)
337 if (m_state == other.m_state)
345 m_state = other.m_state;
363 if (m_state == other.m_state)
371 m_state = other.m_state;
398 if (m_state == other.m_state)
451 swap(m_state, other.m_state);
471 m_state = DE_NULL;
477 DE_ASSERT(!m_ptr && !m_state);
479 SharedPtrStateBase* state = weakRef.m_state;
500 m_state = state;
506 if (m_state)
508 deAtomicIncrement32(&m_state->strongRefCount);
509 deAtomicIncrement32(&m_state->weakRefCount);
516 if (m_state)
518 if (deAtomicDecrement32(&m_state->strongRefCount) == 0)
521 m_state->deletePtr();
524 if (deAtomicDecrement32(&m_state->weakRefCount) == 0)
526 delete m_state;
527 m_state = DE_NULL;
540 , m_state (DE_NULL)
551 , m_state (other.m_state)
563 , m_state (other.m_state)
591 m_state = other.m_state;
612 m_state = other.m_state;
622 if (m_state)
623 deAtomicIncrement32(&m_state->weakRefCount);
629 if (m_state)
631 if (deAtomicDecrement32(&m_state->weakRefCount) == 0)
633 delete m_state;
634 m_state = DE_NULL;