Home
last modified time | relevance | path

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

/third_party/flutter/skia/third_party/externals/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 …]
/third_party/skia/third_party/externals/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 …]
/third_party/cef/include/base/
Dcef_ref_counted.h61 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 …]
Dcef_atomic_ref_count.h57 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/
Dcef_base.h101 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/
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_;
/third_party/gn/src/base/memory/
Dref_counted.h23 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};
Dref_counted.cc12 return ref_count_.IsOne(); in HasOneRef()
20 CHECK(++ref_count_ > 0); in AddRefImpl()
/third_party/flutter/engine/flutter/fml/memory/
Dref_counted_internal.h26 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/
Dcef_ref_counted.cc22 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/
Dcef_helpers.h105 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/
Dthread_util.h84 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/
Drefcount.h89 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/
Drefcount.h89 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/
Dosr_dragdrop_win.h41 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()
Dosr_accessibility_node_win.cc217 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_()
Dosr_dragdrop_win.cc642 : ref_count_(0) { in DataObjectWin()
/third_party/gstreamer/gstplugins_bad/sys/wasapi/
Dgstmmdeviceenumerator.cpp85 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/
Dctocpp_ref_counted.h35 ref_count_.AddRef(); in AddRef()
99 CefRefCount ref_count_; variable
154 if (ref_count_.Release()) {
/third_party/cef/libcef_dll/cpptoc/
Dcpptoc_ref_counted.h82 ref_count_.AddRef(); in AddRef()
86 if (ref_count_.Release()) { in Release()
198 CefRefCount ref_count_; variable
/third_party/gstreamer/gstplugins_bad/sys/mediafoundation/
Dgstmfvideobuffer.cpp32 : 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_()
Dgstmftransform.cpp111 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/
Dgstwasapi2ringbuffer.cpp41 : 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/
Dtest-PR18791-v1.so.abi1780 …<var-decl name='ref_count_' type-id='type-id-160' visibility='default' filepath='../sigc++/signal_…
Dtest-PR18791-v0.so.abi1709 …<var-decl name='ref_count_' type-id='type-id-170' visibility='default' filepath='../sigc++/signal_…