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