Lines Matching refs:objectId

52 void WeakRefCounter::IncWeakRefCount(const void *objectId)  in IncWeakRefCount()  argument
55 refCounter_->IncWeakRefCount(objectId); in IncWeakRefCount()
59 void WeakRefCounter::DecWeakRefCount(const void *objectId) in DecWeakRefCount() argument
62 refCounter_->DecWeakRefCount(objectId); in DecWeakRefCount()
67 bool WeakRefCounter::AttemptIncStrongRef(const void *objectId) in AttemptIncStrongRef() argument
70 return refCounter_->AttemptIncStrongRef(objectId, unuse); in AttemptIncStrongRef()
121 void RefCounter::PrintRefs(const void* objectId) in PrintRefs() argument
125 "refcnt: %{public}d", objectId, this, atomicStrong_.load(std::memory_order_relaxed), in PrintRefs()
129 void RefCounter::GetNewTrace(const void* objectId) in GetNewTrace() argument
132 RefTracker* newTracker = new RefTracker(refTracker, objectId, atomicStrong_, in GetNewTrace()
162 void RefCounter::DebugRefBase([[maybe_unused]]const void* objectId)
167 PrintRefs(objectId);
169 GetNewTrace(objectId);
244 int RefCounter::IncStrongRefCount(const void* objectId) in IncStrongRefCount() argument
246 DebugRefBase(objectId); in IncStrongRefCount()
258 int RefCounter::DecStrongRefCount(const void* objectId) in DecStrongRefCount() argument
260 DebugRefBase(objectId); in DecStrongRefCount()
279 int RefCounter::IncWeakRefCount(const void* objectId) in IncWeakRefCount() argument
281 DebugRefBase(objectId); in IncWeakRefCount()
285 int RefCounter::DecWeakRefCount(const void* objectId) in DecWeakRefCount() argument
287 DebugRefBase(objectId); in DecWeakRefCount()
352 bool RefCounter::AttemptIncStrongRef(const void *objectId, int &outCount) in AttemptIncStrongRef() argument
355 IncWeakRefCount(objectId); in AttemptIncStrongRef()
394 DecWeakRefCount(objectId); in AttemptIncStrongRef()
401 bool RefCounter::AttemptIncStrong(const void *objectId) in AttemptIncStrong() argument
403 IncWeakRefCount(objectId); in AttemptIncStrong()
412 DecWeakRefCount(objectId); in AttemptIncStrong()
514 void RefBase::IncStrongRef(const void *objectId) in IncStrongRef() argument
520 IncWeakRef(objectId); in IncStrongRef()
521 const int curCount = refs_->IncStrongRefCount(objectId); in IncStrongRef()
526 OnFirstStrongRef(objectId); in IncStrongRef()
530 void RefBase::CheckIsAttemptAcquireSet(const void *objectId) in CheckIsAttemptAcquireSet() argument
539 refs_->DecStrongRefCount(objectId); in CheckIsAttemptAcquireSet()
540 refs_->DecWeakRefCount(objectId); in CheckIsAttemptAcquireSet()
544 void RefBase::DecStrongRef(const void *objectId) in DecStrongRef() argument
551 const int curCount = refs->DecStrongRefCount(objectId); in DecStrongRef()
557 OnLastStrongRef(objectId); in DecStrongRef()
565 refs->DecWeakRefCount(objectId); in DecStrongRef()
584 void RefBase::IncWeakRef(const void *objectId) in IncWeakRef() argument
587 refs_->IncWeakRefCount(objectId); in IncWeakRef()
596 void RefBase::DecWeakRef(const void *objectId) in DecWeakRef() argument
599 refs_->DecWeakRefCount(objectId); in DecWeakRef()
611 bool RefBase::AttemptAcquire(const void *objectId) in AttemptAcquire() argument
618 if (refs_->AttemptIncStrongRef(objectId, count)) { in AttemptAcquire()
621 OnFirstStrongRef(objectId); in AttemptAcquire()
629 bool RefBase::AttemptIncStrongRef(const void *objectId) in AttemptIncStrongRef() argument
631 if ((refs_ != nullptr) && (OnAttemptPromoted(objectId))) { in AttemptIncStrongRef()
633 bool ret = refs_->AttemptIncStrongRef(objectId, count); in AttemptIncStrongRef()
635 OnFirstStrongRef(objectId); in AttemptIncStrongRef()
643 bool RefBase::AttemptIncStrong(const void *objectId) in AttemptIncStrong() argument
648 if (refs_->AttemptIncStrong(objectId)) { in AttemptIncStrong()