Home
last modified time | relevance | path

Searched refs:ref_count_ (Results 1 – 24 of 24) 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/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/libchrome/base/memory/
Dref_counted.cc14 &const_cast<RefCountedThreadSafeBase*>(this)->ref_count_); in HasOneRef()
17 RefCountedThreadSafeBase::RefCountedThreadSafeBase() : ref_count_(0) { in RefCountedThreadSafeBase()
34 AtomicRefCountInc(&ref_count_); in AddRef()
40 DCHECK(!AtomicRefCountIsZero(&ref_count_)); in Release()
42 if (!AtomicRefCountDec(&ref_count_)) { in Release()
Dref_counted.h30 bool HasOneRef() const { return ref_count_ == 1; } in HasOneRef()
34 : ref_count_(0) in RefCountedBase()
56 ++ref_count_; in AddRef()
68 if (--ref_count_ == 0) { in Release()
78 mutable int ref_count_;
102 mutable AtomicRefCount 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.cc41 ++dispatcher_->ref_count_; in CompileTask()
68 if (--dispatcher_->ref_count_ == 0) { in Run()
84 DCHECK_EQ(0, ref_count_); in ~OptimizingCompileDispatcher()
158 while (ref_count_ > 0) ref_count_zero_.Wait(&ref_count_mutex_); in Flush()
172 while (ref_count_ > 0) ref_count_zero_.Wait(&ref_count_mutex_); in Stop()
Doptimizing-compile-dispatcher.h34 ref_count_(0), in OptimizingCompileDispatcher()
91 int ref_count_; variable
/external/libchrome/base/
Dcallback_internal.cc13 AtomicRefCountInc(&ref_count_); in AddRef()
17 if (!AtomicRefCountDec(&ref_count_)) in Release()
51 DCHECK(!bind_state_.get() || bind_state_->ref_count_ == 1); in CallbackBase()
Dcallback_internal.h36 : ref_count_(0), destructor_(destructor) {} in BindStateBase()
47 AtomicRefCount 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/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()