Home
last modified time | relevance | path

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

12

/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 …]
/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/libweave/third_party/chromium/base/memory/
Dref_counted.cc12 return ref_count_ == 1; in HasOneRef()
15 RefCountedThreadSafeBase::RefCountedThreadSafeBase() : ref_count_(0) { in RefCountedThreadSafeBase()
32 ++ref_count_; in AddRef()
38 DCHECK(ref_count_ != 0); in Release()
40 if (--ref_count_ == 0) { in Release()
Dref_counted.h24 bool HasOneRef() const { return ref_count_ == 1; } in HasOneRef()
28 : ref_count_(0) in RefCountedBase()
46 ++ref_count_; in AddRef()
54 if (--ref_count_ == 0) { in Release()
64 mutable int ref_count_;
86 mutable std::atomic<int32_t> 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.h27 bool HasOneRef() const { return ref_count_ == 1; } in HasOneRef()
31 : ref_count_(0) in RefCountedBase()
53 ++ref_count_; in AddRef()
65 if (--ref_count_ == 0) { in Release()
75 mutable int ref_count_;
99 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
/external/openfst/src/include/fst/
Dadd-on.h53 int RefCount() const { return ref_count_.count(); } in RefCount()
54 int IncrRefCount() { return ref_count_.Incr(); } in IncrRefCount()
55 int DecrRefCount() { return ref_count_.Decr(); } in DecrRefCount()
58 RefCounter ref_count_;
120 int RefCount() const { return ref_count_.count(); } in RefCount()
123 return ref_count_.Incr(); in IncrRefCount()
127 return ref_count_.Decr(); in DecrRefCount()
133 RefCounter ref_count_; variable
Daccumulator.h138 int RefCount() const { return ref_count_.count(); } in RefCount()
139 int IncrRefCount() { return ref_count_.Incr(); } in IncrRefCount()
140 int DecrRefCount() { return ref_count_.Decr(); } in DecrRefCount()
151 RefCounter ref_count_; // Reference count. variable
379 int RefCount() const { return ref_count_.count(); } in RefCount()
380 int IncrRefCount() { return ref_count_.Incr(); } in IncrRefCount()
381 int DecrRefCount() { return ref_count_.Decr(); } in DecrRefCount()
418 RefCounter ref_count_; variable
637 int RefCount() const { return ref_count_.count(); } in RefCount()
638 int IncrRefCount() { return ref_count_.Incr(); } in IncrRefCount()
[all …]
/external/libweave/third_party/chromium/base/
Dcallback_internal.cc13 ++ref_count_; in AddRef()
17 if (--ref_count_ == 0) in Release()
39 DCHECK(!bind_state_.get() || bind_state_->ref_count_ == 1); in CallbackBase()
Dcallback_internal.h41 : ref_count_(0), destructor_(destructor) {} in BindStateBase()
51 std::atomic<int32_t> ref_count_; variable
/external/libchrome/base/
Dcallback_internal.cc13 AtomicRefCountInc(&ref_count_); in AddRef()
17 if (!AtomicRefCountDec(&ref_count_)) in Release()
39 DCHECK(!bind_state_.get() || bind_state_->ref_count_ == 1); in CallbackBase()
Dcallback_internal.h42 : ref_count_(0), destructor_(destructor) {} in BindStateBase()
52 AtomicRefCount ref_count_; variable
/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/
Doptimizing-compile-dispatcher.cc39 ++dispatcher->ref_count_; in CompileTask()
66 if (--dispatcher->ref_count_ == 0) { in Run()
82 DCHECK_EQ(0, ref_count_); in ~OptimizingCompileDispatcher()
142 while (ref_count_ > 0) ref_count_zero_.Wait(&ref_count_mutex_); in Flush()
157 while (ref_count_ > 0) ref_count_zero_.Wait(&ref_count_mutex_); in Stop()
Doptimizing-compile-dispatcher.h31 ref_count_(0), in OptimizingCompileDispatcher()
88 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()
/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.

12