/third_party/flutter/skia/third_party/externals/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 …]
|
/third_party/skia/third_party/externals/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 …]
|
/third_party/cef/include/base/ |
D | cef_ref_counted.h | 61 bool HasOneRef() const { return ref_count_ == 1; } in HasOneRef() 62 bool HasAtLeastOneRef() const { return ref_count_ >= 1; } in HasAtLeastOneRef() 71 explicit RefCountedBase(StartRefCountFromOneTag) : ref_count_(1) { in RefCountedBase() 94 if (ref_count_ >= 1) { in AddRef() 108 if (ref_count_ == 0) in Release() 111 if (ref_count_ >= 1) in Release() 113 if (ref_count_ == 1) in Release() 117 return ref_count_ == 0; in Release() 135 return ref_count_ <= 1 || CalledOnValidThread(); in IsOnValidThread() 156 void AddRefImpl() const { ++ref_count_; } in AddRefImpl() [all …]
|
D | cef_atomic_ref_count.h | 57 constexpr AtomicRefCount() : ref_count_(0) {} in AtomicRefCount() 59 : ref_count_(initial_value) {} in AtomicRefCount() 68 return ref_count_.fetch_add(increment, std::memory_order_relaxed); in Increment() 79 return ref_count_.fetch_sub(1, std::memory_order_acq_rel) != 1; in Decrement() 88 bool IsOne() const { return ref_count_.load(std::memory_order_acquire) == 1; } in IsOne() 94 return ref_count_.load(std::memory_order_acquire) == 0; in IsZero() 100 return ref_count_.load(std::memory_order_relaxed); in SubtleRefCountForDebug() 104 std::atomic_int ref_count_;
|
/third_party/cef/include/ |
D | cef_base.h | 101 void AddRef() const { ref_count_.Increment(); } in AddRef() 106 bool Release() const { return !ref_count_.Decrement(); } in Release() 111 bool HasOneRef() const { return ref_count_.IsOne(); } in HasOneRef() 116 bool HasAtLeastOneRef() const { return !ref_count_.IsZero(); } in HasAtLeastOneRef() 119 mutable base::AtomicRefCount ref_count_{0}; 128 void AddRef() const override { ref_count_.AddRef(); } \ 130 if (ref_count_.Release()) { \ 136 bool HasOneRef() const override { return ref_count_.HasOneRef(); } \ 138 return ref_count_.HasAtLeastOneRef(); \ 142 CefRefCount ref_count_
|
/third_party/gn/src/base/ |
D | atomic_ref_count.h | 17 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_;
|
/third_party/gn/src/base/memory/ |
D | ref_counted.h | 23 bool HasOneRef() const { return ref_count_ == 1; } in HasOneRef() 28 explicit RefCountedBase(StartRefCountFromOneTag) : ref_count_(1) {} in RefCountedBase() 36 --ref_count_; in Release() 43 return ref_count_ == 0; in Release() 70 void AddRefImpl() const { ++ref_count_; } in AddRefImpl() 73 mutable uint32_t ref_count_ = 0; variable 86 : ref_count_(1) {} in RefCountedThreadSafeBase() 109 ALWAYS_INLINE void AddRefImpl() const { ref_count_.Increment(); } in AddRefImpl() 112 if (!ref_count_.Decrement()) { in ReleaseImpl() 118 mutable AtomicRefCount ref_count_{0};
|
D | ref_counted.cc | 12 return ref_count_.IsOne(); in HasOneRef() 20 CHECK(++ref_count_ > 0); in AddRefImpl()
|
/third_party/flutter/engine/flutter/fml/memory/ |
D | ref_counted_internal.h | 26 ref_count_.fetch_add(1u, std::memory_order_relaxed); in AddRef() 30 return ref_count_.load(std::memory_order_acquire) == 1u; in HasOneRef() 45 FML_DCHECK(ref_count_.load(std::memory_order_acquire) != 0u); in Release() 58 if (ref_count_.fetch_sub(1u, std::memory_order_release) == 1u) { in Release() 76 mutable std::atomic_uint_fast32_t ref_count_; 87 : ref_count_(1u) in RefCountedThreadSafeBase()
|
/third_party/cef/libcef_dll/base/ |
D | cef_ref_counted.cc | 22 return ref_count_.IsOne(); in HasOneRef() 26 return !ref_count_.IsZero(); in HasAtLeastOneRef() 53 CHECK(++ref_count_ != 0); in AddRefImpl() 64 CHECK(--ref_count_ != std::numeric_limits<decltype(ref_count_)>::max()); in ReleaseImpl()
|
/third_party/cef/include/wrapper/ |
D | cef_helpers.h | 105 void AddRef() const override { ref_count_.AddRef(); } \ 107 if (ref_count_.Release()) { \ 113 bool HasOneRef() const override { return ref_count_.HasOneRef(); } \ 115 return ref_count_.HasAtLeastOneRef(); \ 119 CefRefCount ref_count_
|
/third_party/cef/libcef/browser/ |
D | thread_util.h | 84 void AddRef() const override { ref_count_.AddRef(); } \ 86 if (ref_count_.Release()) { \ 92 bool HasOneRef() const override { return ref_count_.HasOneRef(); } \ 94 return ref_count_.HasAtLeastOneRef(); \ 98 CefRefCount ref_count_
|
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/port/ |
D | refcount.h | 89 typeid(this).name(), object_counter_, object_id_, ref_count_) 123 RefCounted() : ref_count_(0) { in RefCounted() 130 RefCounted(const RefCounted<TDerived>&) : ref_count_(0) {} in RefCounted() 145 size_t new_count = AtomicIncrement(&ref_count_); in AddRef() 151 size_t new_ref_count = AtomicDecrement(&ref_count_); in Release() 161 mutable size_t ref_count_; // reference count of current object variable
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/port/ |
D | refcount.h | 89 typeid(this).name(), object_counter_, object_id_, ref_count_) 123 RefCounted() : ref_count_(0) { in RefCounted() 130 RefCounted(const RefCounted<TDerived>&) : ref_count_(0) {} in RefCounted() 145 size_t new_count = AtomicIncrement(&ref_count_); in AddRef() 151 size_t new_ref_count = AtomicDecrement(&ref_count_); in Release() 161 mutable size_t ref_count_; // reference count of current object variable
|
/third_party/cef/tests/cefclient/browser/ |
D | osr_dragdrop_win.h | 41 ULONG __stdcall AddRef() { return ++ref_count_; } \ 43 if (--ref_count_ == 0) { \ 47 return ref_count_; \ 51 ULONG ref_count_; 86 : ref_count_(0), callback_(callback), hWnd_(hWnd) {} in DEFAULT_QUERY_INTERFACE() 109 explicit DropSourceWin() : ref_count_(0) {} in DEFAULT_QUERY_INTERFACE()
|
D | osr_accessibility_node_win.cc | 217 CefIAccessible(OsrAXNode* node) : ref_count_(0), node_(node) {} in CefIAccessible() 227 ULONG ref_count_; member 255 return InterlockedIncrement((LONG volatile*)&ref_count_); in STDMETHODIMP_() 259 ULONG ulRefCnt = InterlockedDecrement((LONG volatile*)&ref_count_); in STDMETHODIMP_()
|
D | osr_dragdrop_win.cc | 642 : ref_count_(0) { in DataObjectWin()
|
/third_party/gstreamer/gstplugins_bad/sys/wasapi/ |
D | gstmmdeviceenumerator.cpp | 85 GST_TRACE ("%p, %d", this, (guint) ref_count_); in AddRef() 86 return InterlockedIncrement (&ref_count_); in AddRef() 94 GST_TRACE ("%p, %d", this, (guint) ref_count_); in Release() 95 ref_count = InterlockedDecrement (&ref_count_); in Release() 206 : ref_count_ (1) in GstIMMNotificationClient() 217 ULONG ref_count_; member in GstIMMNotificationClient
|
/third_party/cef/libcef_dll/ctocpp/ |
D | ctocpp_ref_counted.h | 35 ref_count_.AddRef(); in AddRef() 99 CefRefCount ref_count_; variable 154 if (ref_count_.Release()) {
|
/third_party/cef/libcef_dll/cpptoc/ |
D | cpptoc_ref_counted.h | 82 ref_count_.AddRef(); in AddRef() 86 if (ref_count_.Release()) { in Release() 198 CefRefCount ref_count_; variable
|
/third_party/gstreamer/gstplugins_bad/sys/mediafoundation/ |
D | gstmfvideobuffer.cpp | 32 : ref_count_ (1) in IGstMFVideoBuffer() 199 GST_TRACE ("%p, %d", this, ref_count_); in STDMETHODIMP_() 200 return InterlockedIncrement (&ref_count_); in STDMETHODIMP_() 208 GST_TRACE ("%p, %d", this, ref_count_); in STDMETHODIMP_() 209 ref_count = InterlockedDecrement (&ref_count_); in STDMETHODIMP_()
|
D | gstmftransform.cpp | 111 GST_TRACE ("%p, %d", this, ref_count_); in AddRef() 112 return InterlockedIncrement (&ref_count_); in AddRef() 120 GST_TRACE ("%p, %d", this, ref_count_); in Release() 121 ref_count = InterlockedDecrement (&ref_count_); in Release() 187 : ref_count_ (1) in GstMFTransformAsyncCallback() 214 ULONG ref_count_; member in GstMFTransformAsyncCallback
|
/third_party/gstreamer/gstplugins_bad/sys/wasapi2/ |
D | gstwasapi2ringbuffer.cpp | 41 : ref_count_(1) in GstWasapiAsyncCallback() 57 GST_TRACE ("%p, %d", this, ref_count_); in AddRef() 58 return InterlockedIncrement (&ref_count_); in AddRef() 65 GST_TRACE ("%p, %d", this, ref_count_); in Release() 66 ref_count = InterlockedDecrement (&ref_count_); in Release() 130 ULONG ref_count_; member in GstWasapiAsyncCallback
|
/third_party/libabigail/tests/data/test-abidiff/ |
D | test-PR18791-v1.so.abi | 1780 …<var-decl name='ref_count_' type-id='type-id-160' visibility='default' filepath='../sigc++/signal_…
|
D | test-PR18791-v0.so.abi | 1709 …<var-decl name='ref_count_' type-id='type-id-170' visibility='default' filepath='../sigc++/signal_…
|