/external/webrtc/webrtc/base/ |
D | bind_unittest.cc | 59 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 …]
|
D | referencecountedsingletonfactory.h | 35 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
|
D | refcount.h | 32 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 …]
|
D | stream.h | 652 : 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/ |
D | smart_pointer_test.cc | 35 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/ |
D | ref_count.h | 46 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/ |
D | ref_counted.cc | 14 &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()
|
D | ref_counted.h | 30 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/ |
D | refcount.h | 89 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/ |
D | shared_desktop_frame.cc | 24 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/ |
D | full_screen_chrome_window_detector.h | 37 void AddRef() { ++ref_count_; } in AddRef() 39 if (--ref_count_ == 0) in Release() 54 Atomic32 ref_count_; variable
|
D | desktop_configuration_monitor.h | 41 void AddRef() { ++ref_count_; } in AddRef() 43 if (--ref_count_ == 0) in Release() 56 Atomic32 ref_count_; variable
|
D | desktop_configuration_monitor.cc | 23 : ref_count_(0), in DesktopConfigurationMonitor()
|
D | full_screen_chrome_window_detector.cc | 195 : ref_count_(0) {} in FullScreenChromeWindowDetector()
|
/external/webrtc/webrtc/modules/desktop_capture/x11/ |
D | shared_x_display.h | 51 void AddRef() { ++ref_count_; } in AddRef() 53 if (--ref_count_ == 0) in Release() 74 Atomic32 ref_count_; variable
|
/external/webrtc/webrtc/video/ |
D | payload_router.h | 66 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/ |
D | optimizing-compile-dispatcher.cc | 41 ++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()
|
D | optimizing-compile-dispatcher.h | 34 ref_count_(0), in OptimizingCompileDispatcher() 91 int ref_count_; variable
|
/external/libchrome/base/ |
D | callback_internal.cc | 13 AtomicRefCountInc(&ref_count_); in AddRef() 17 if (!AtomicRefCountDec(&ref_count_)) in Release() 51 DCHECK(!bind_state_.get() || bind_state_->ref_count_ == 1); in CallbackBase()
|
D | callback_internal.h | 36 : ref_count_(0), destructor_(destructor) {} in BindStateBase() 47 AtomicRefCount ref_count_; variable
|
/external/webrtc/webrtc/audio/ |
D | audio_state.cc | 46 return rtc::AtomicOps::Increment(&ref_count_); in AddRef() 51 int count = rtc::AtomicOps::Decrement(&ref_count_); in Release()
|
D | audio_state.h | 54 mutable volatile int ref_count_ = 0; variable
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
D | forward_error_correction.h | 42 Packet() : length(0), data(), ref_count_(0) {} in Packet() 56 int32_t ref_count_; // Counts the number of references to a packet.
|
D | forward_error_correction.cc | 42 return ++ref_count_; in AddRef() 47 ref_count = --ref_count_; in Release()
|