Searched refs:ref_count_ (Results 1 – 1 of 1) sorted by relevance
78 DebugStackRefCounterImpl() : ref_count_(0u) { } in DebugStackRefCounterImpl()80 size_t IncrementRefCount() { return ++ref_count_; } in IncrementRefCount()81 void DecrementRefCount() { --ref_count_; } in DecrementRefCount()82 size_t GetRefCount() const { return ref_count_; } in GetRefCount()83 void CheckNoRefs() const { CHECK_EQ(ref_count_, 0u); } in CheckNoRefs()86 size_t ref_count_;93 : counter_(counter), ref_count_(counter->IncrementRefCount()) { in DebugStackReferenceImpl()96 : counter_(other.counter_), ref_count_(counter_->IncrementRefCount()) { in DebugStackReferenceImpl()99 : counter_(other.counter_), ref_count_(other.ref_count_) { in DebugStackReferenceImpl()111 void CheckTop() { CHECK_EQ(counter_->GetRefCount(), ref_count_); } in CheckTop()[all …]