Home
last modified time | relevance | path

Searched refs:ref_count_ (Results 1 – 25 of 25) sorted by relevance

/external/webrtc/webrtc/base/
Dbind_unittest.cc59 LifeTimeCheck() : ref_count_(0) {} in LifeTimeCheck()
60 void AddRef() { ++ref_count_; } in AddRef()
61 void Release() { --ref_count_; } in Release()
63 int ref_count_; member
164 EXPECT_EQ(object.ref_count_, 0); in TEST()
166 EXPECT_EQ(object.ref_count_, 1); in TEST()
169 EXPECT_EQ(object.ref_count_, 2); in TEST()
171 EXPECT_EQ(object.ref_count_, 1); in TEST()
173 EXPECT_EQ(object.ref_count_, 0); in TEST()
180 EXPECT_EQ(object.ref_count_, 0); in TEST()
[all …]
Dreferencecountedsingletonfactory.h35 ReferenceCountedSingletonFactory() : ref_count_(0) {} in ReferenceCountedSingletonFactory()
38 ASSERT(ref_count_ == 0); in ~ReferenceCountedSingletonFactory()
53 if (ref_count_ == 0) { in GetInstance()
60 ++ref_count_; in GetInstance()
62 LOG(LS_VERBOSE) << "Number of references: " << ref_count_; in GetInstance()
68 ASSERT(ref_count_ > 0); in ReleaseInstance()
70 --ref_count_; in ReleaseInstance()
71 LOG(LS_VERBOSE) << "Number of references: " << ref_count_; in ReleaseInstance()
72 if (ref_count_ == 0) { in ReleaseInstance()
78 int ref_count_; variable
Drefcount.h32 RefCountedObject() : ref_count_(0) { in RefCountedObject()
36 explicit RefCountedObject(P p) : T(p), ref_count_(0) { in RefCountedObject()
40 RefCountedObject(P1 p1, P2 p2) : T(p1, p2), ref_count_(0) { in RefCountedObject()
44 RefCountedObject(P1 p1, P2 p2, P3 p3) : T(p1, p2, p3), ref_count_(0) { in RefCountedObject()
49 : T(p1, p2, p3, p4), ref_count_(0) { in RefCountedObject()
54 : T(p1, p2, p3, p4, p5), ref_count_(0) { in RefCountedObject()
60 : T(p1, p2, p3, p4, p5, p6), ref_count_(0) { in RefCountedObject()
66 : T(p1, p2, p3, p4, p5, p6, p7), ref_count_(0) { in RefCountedObject()
72 : T(p1, p2, p3, p4, p5, p6, p7, p8), ref_count_(0) { in RefCountedObject()
79 : T(p1, p2, p3, p4, p5, p6, p7, p8, p9), ref_count_(0) { in RefCountedObject()
[all …]
Dstream.h652 : stream_(stream), ref_count_(1) { in StreamRefCount()
656 ++ref_count_; in AddReference()
662 ref_count = --ref_count_; in Release()
671 int ref_count_; variable
/external/sfntly/cpp/src/test/
Dsmart_pointer_test.cc35 EXPECT_EQ(size_t(1), p1->ref_count_); in TestSmartPointer()
40 EXPECT_EQ(size_t(2), p1->ref_count_); in TestSmartPointer()
41 EXPECT_EQ(size_t(2), p2->ref_count_); in TestSmartPointer()
46 EXPECT_EQ(size_t(3), p1->ref_count_); in TestSmartPointer()
47 EXPECT_EQ(size_t(3), p2->ref_count_); in TestSmartPointer()
48 EXPECT_EQ(size_t(3), p3->ref_count_); in TestSmartPointer()
52 EXPECT_EQ(size_t(2), p1->ref_count_); in TestSmartPointer()
53 EXPECT_EQ(size_t(1), p2->ref_count_); in TestSmartPointer()
54 EXPECT_EQ(size_t(2), p3->ref_count_); in TestSmartPointer()
58 EXPECT_EQ(size_t(1), p1->ref_count_); in TestSmartPointer()
[all …]
/external/libchrome/base/memory/
Dref_counted.h27 bool HasOneRef() const { return ref_count_ == 1; } in HasOneRef()
36 explicit RefCountedBase(StartRefCountFromOneTag) : ref_count_(1) { in RefCountedBase()
60 if (ref_count_ >= 1) { in AddRef()
70 --ref_count_; in Release()
79 if (ref_count_ == 0) in Release()
82 if (ref_count_ >= 1) in Release()
84 if (ref_count_ == 1) in Release()
88 return ref_count_ == 0; in Release()
106 return ref_count_ <= 1 || CalledOnValidSequence(); in IsOnValidSequence()
126 void AddRefImpl() const { ++ref_count_; } in AddRefImpl()
[all …]
Dref_counted.cc21 return ref_count_.IsOne(); in HasOneRef()
36 CHECK(++ref_count_ > 0); in AddRefImpl()
/external/libchrome/base/
Datomic_ref_count.h17 constexpr AtomicRefCount() : ref_count_(0) {} in AtomicRefCount()
19 : ref_count_(initial_value) {} in AtomicRefCount()
26 ref_count_.fetch_add(increment, std::memory_order_relaxed); in Increment()
37 return ref_count_.fetch_sub(1, std::memory_order_acq_rel) != 1; in Decrement()
46 bool IsOne() const { return ref_count_.load(std::memory_order_acquire) == 1; } in IsOne()
52 return ref_count_.load(std::memory_order_acquire) == 0; in IsZero()
58 return ref_count_.load(std::memory_order_relaxed); in SubtleRefCountForDebug()
62 std::atomic_int ref_count_;
/external/webrtc/webrtc/system_wrappers/include/
Dref_count.h46 RefCountImpl() : ref_count_(0) {} in RefCountImpl()
49 explicit RefCountImpl(P p) : T(p), ref_count_(0) {} in RefCountImpl()
52 RefCountImpl(P1 p1, P2 p2) : T(p1, p2), ref_count_(0) {} in RefCountImpl()
55 RefCountImpl(P1 p1, P2 p2, P3 p3) : T(p1, p2, p3), ref_count_(0) {} in RefCountImpl()
58 RefCountImpl(P1 p1, P2 p2, P3 p3, P4 p4) : T(p1, p2, p3, p4), ref_count_(0) {} in RefCountImpl()
62 : T(p1, p2, p3, p4, p5), ref_count_(0) {} in RefCountImpl()
65 return ++ref_count_; in AddRef()
70 ref_count = --ref_count_; in Release()
77 mutable Atomic32 ref_count_;
/external/sfntly/cpp/src/sfntly/port/
Drefcount.h89 typeid(this).name(), object_counter_, object_id_, ref_count_)
121 RefCounted() : ref_count_(0) { in RefCounted()
128 RefCounted(const RefCounted<TDerived>&) : ref_count_(0) {} in RefCounted()
143 size_t new_count = AtomicIncrement(&ref_count_); in AddRef()
149 size_t new_ref_count = AtomicDecrement(&ref_count_); in Release()
159 mutable size_t ref_count_; // reference count of current object variable
/external/webrtc/webrtc/modules/desktop_capture/
Dshared_desktop_frame.cc24 bool HasOneRef() { return ref_count_.Value() == 1; } in HasOneRef()
27 return ++ref_count_; in AddRef()
32 ref_count = --ref_count_; in Release()
41 Atomic32 ref_count_; member in webrtc::SharedDesktopFrame::Core
/external/webrtc/webrtc/modules/desktop_capture/mac/
Dfull_screen_chrome_window_detector.h37 void AddRef() { ++ref_count_; } in AddRef()
39 if (--ref_count_ == 0) in Release()
54 Atomic32 ref_count_; variable
Ddesktop_configuration_monitor.h41 void AddRef() { ++ref_count_; } in AddRef()
43 if (--ref_count_ == 0) in Release()
56 Atomic32 ref_count_; variable
Ddesktop_configuration_monitor.cc23 : ref_count_(0), in DesktopConfigurationMonitor()
Dfull_screen_chrome_window_detector.cc195 : ref_count_(0) {} in FullScreenChromeWindowDetector()
/external/webrtc/webrtc/modules/desktop_capture/x11/
Dshared_x_display.h51 void AddRef() { ++ref_count_; } in AddRef()
53 if (--ref_count_ == 0) in Release()
74 Atomic32 ref_count_; variable
/external/webrtc/webrtc/video/
Dpayload_router.h66 void AddRef() { ++ref_count_; } in AddRef()
67 void Release() { if (--ref_count_ == 0) { delete this; } } in Release()
78 Atomic32 ref_count_; variable
/external/v8/src/compiler-dispatcher/
Doptimizing-compile-dispatcher.cc46 ++dispatcher_->ref_count_; in CompileTask()
73 if (--dispatcher_->ref_count_ == 0) { in RunInternal()
89 DCHECK_EQ(0, ref_count_); in ~OptimizingCompileDispatcher()
164 while (ref_count_ > 0) ref_count_zero_.Wait(&ref_count_mutex_); in Flush()
178 while (ref_count_ > 0) ref_count_zero_.Wait(&ref_count_mutex_); in Stop()
Doptimizing-compile-dispatcher.h32 ref_count_(0), in OptimizingCompileDispatcher()
89 int ref_count_; variable
/external/webrtc/webrtc/audio/
Daudio_state.cc46 return rtc::AtomicOps::Increment(&ref_count_); in AddRef()
51 int count = rtc::AtomicOps::Decrement(&ref_count_); in Release()
Daudio_state.h54 mutable volatile int ref_count_ = 0; variable
/external/perfetto/src/profiling/memory/
Dbookkeeping.cc215 node->ref_count_ += 1; in IncrementNode()
221 PERFETTO_DCHECK(node->ref_count_ >= 1); in DecrementNode()
228 node->ref_count_ -= 1; in DecrementNode()
229 delete_prev = node->ref_count_ == 0; in DecrementNode()
Dbookkeeping.h178 uint64_t ref_count_ = 0; variable
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Dforward_error_correction.h42 Packet() : length(0), data(), ref_count_(0) {} in Packet()
56 int32_t ref_count_; // Counts the number of references to a packet.
Dforward_error_correction.cc42 return ++ref_count_; in AddRef()
47 ref_count = --ref_count_; in Release()