Home
last modified time | relevance | path

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

1234

/external/webrtc/rtc_base/
Dcallback_unittest.cc47 int RefCount() const { return count_; } in RefCount() function in rtc::__anon044de1c00111::RefCountedBindTester
107 EXPECT_EQ(0, t.RefCount()); in TEST()
110 EXPECT_EQ(1, t.RefCount()); in TEST()
112 EXPECT_EQ(1, t.RefCount()); in TEST()
114 EXPECT_EQ(1, t.RefCount()); in TEST()
116 EXPECT_EQ(0, t.RefCount()); in TEST()
121 EXPECT_EQ(0, t.RefCount()); in TEST()
125 EXPECT_EQ(1, t.RefCount()); in TEST()
128 EXPECT_EQ(1, t.RefCount()); in TEST()
130 EXPECT_EQ(0, t.RefCount()); in TEST()
[all …]
/external/llvm-project/openmp/libomptarget/src/
Ddevice.h55 mutable uint64_t RefCount;
62 TgtPtrBegin(TB), RefCount(IsINF ? INFRefCount : 1) {} in HstPtrBase()
65 return RefCount; in getRefCount()
69 if (RefCount != INFRefCount) in resetRefCount()
70 RefCount = 1; in resetRefCount()
72 return RefCount; in resetRefCount()
76 if (RefCount != INFRefCount) { in incRefCount()
77 ++RefCount; in incRefCount()
78 assert(RefCount < INFRefCount && "refcount overflow"); in incRefCount()
81 return RefCount; in incRefCount()
[all …]
/external/mesa3d/src/mesa/main/
Dshaderobj.c71 assert(old->RefCount > 0); in _mesa_reference_shader()
73 if (p_atomic_dec_zero(&old->RefCount)) { in _mesa_reference_shader()
85 p_atomic_inc(&sh->RefCount); in _mesa_reference_shader()
93 shader->RefCount = 1; in _mesa_init_shader()
210 assert(oldData->RefCount > 0); in _mesa_reference_shader_program_data()
212 if (p_atomic_dec_zero(&oldData->RefCount)) { in _mesa_reference_shader_program_data()
227 p_atomic_inc(&data->RefCount); in _mesa_reference_shader_program_data()
252 assert(old->RefCount > 0); in _mesa_reference_shader_program_()
254 if (p_atomic_dec_zero(&old->RefCount)) { in _mesa_reference_shader_program_()
265 p_atomic_inc(&shProg->RefCount); in _mesa_reference_shader_program_()
[all …]
Drenderbuffer.c48 rb->RefCount = 1; in _mesa_init_renderbuffer()
152 assert(rb->RefCount == 1); in _mesa_attach_and_own_rb()
206 assert(oldRb->RefCount > 0); in _mesa_reference_renderbuffer_()
207 oldRb->RefCount--; in _mesa_reference_renderbuffer_()
208 deleteFlag = (oldRb->RefCount == 0); in _mesa_reference_renderbuffer_()
223 rb->RefCount++; in _mesa_reference_renderbuffer_()
Dshared.c126 assert(shared->DefaultTex[TEXTURE_1D_INDEX]->RefCount == 1); in _mesa_alloc_shared_state()
190 assert(prog->RefCount == 1); /* should only be referenced by hash table */ in delete_program_cb()
191 prog->RefCount = 0; /* now going away */ in delete_program_cb()
271 fb->RefCount = 0; in delete_framebuffer_cb()
289 rb->RefCount = 0; /* see comment for FBOs above */ in delete_renderbuffer_cb()
476 assert(old->RefCount >= 1); in _mesa_reference_shared_state()
477 old->RefCount--; in _mesa_reference_shared_state()
478 delete = (old->RefCount == 0); in _mesa_reference_shared_state()
491 state->RefCount++; in _mesa_reference_shared_state()
Dglspirv.h44 unsigned RefCount; member
59 GLint RefCount; member
/external/llvm-project/llvm/include/llvm/ADT/
DIntrusiveRefCntPtr.h72 mutable unsigned RefCount = 0; variable
81 assert(RefCount == 0 && in ~RefCountedBase()
91 void Retain() const { ++RefCount; } in Retain()
94 assert(RefCount > 0 && "Reference count is already zero."); in Release()
95 if (--RefCount == 0) in Release()
102 mutable std::atomic<int> RefCount{0};
112 assert(RefCount == 0 && in ~ThreadSafeRefCountedBase()
122 void Retain() const { RefCount.fetch_add(1, std::memory_order_relaxed); } in Retain()
125 int NewRefCount = RefCount.fetch_sub(1, std::memory_order_acq_rel) - 1; in Release()
/external/sfntly/cpp/src/sfntly/port/
Drefcount.h107 class RefCount {
110 virtual ~RefCount() {} in ~RefCount()
121 class RefCounted : virtual public RefCount {
201 RefCount* p = static_cast<RefCount*>(pT);
250 RefCount* p = static_cast<RefCount*>(p_); in Release()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DIntrusiveRefCntPtr.h71 mutable unsigned RefCount = 0; variable
77 void Retain() const { ++RefCount; } in Retain()
80 assert(RefCount > 0 && "Reference count is already zero."); in Release()
81 if (--RefCount == 0) in Release()
88 mutable std::atomic<int> RefCount; variable
91 ThreadSafeRefCountedBase() : RefCount(0) {} in ThreadSafeRefCountedBase()
94 void Retain() const { RefCount.fetch_add(1, std::memory_order_relaxed); } in Retain()
97 int NewRefCount = RefCount.fetch_sub(1, std::memory_order_acq_rel) - 1; in Release()
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/operators/
Drx-ref_count.hpp186 class RefCount = rxo::detail::ref_count<SourceValue, rxu::decay_t<ConnectableObservable>>,
187 class Value = rxu::value_type_t<RefCount>,
188 class Result = observable<Value, RefCount>
191 return Result(RefCount(std::forward<ConnectableObservable>(o))); in member()
200 class RefCount = rxo::detail::ref_count<SourceValue,
203 class Value = rxu::value_type_t<RefCount>,
204 class Result = observable<Value, RefCount>
207 return Result(RefCount(std::forward<ConnectableObservable>(other), in member()
/external/deqp/framework/delibs/decpp/
DdePoolArray.cpp189 class RefCount class
192 RefCount (void) in RefCount() function in de::__anonae7cc4be0111::RefCount
197 RefCount (int* count) in RefCount() function in de::__anonae7cc4be0111::RefCount
203 RefCount (const RefCount& other) in RefCount() function in de::__anonae7cc4be0111::RefCount
210 ~RefCount (void) in ~RefCount()
216 RefCount& operator= (const RefCount& other) in operator =()
241 PoolArray<RefCount> arr (&pool); in sideEffectTest()
243 RefCount counter (&count); in sideEffectTest()
/external/llvm/include/llvm/Analysis/
DAliasAnalysisEvaluator.h37 int64_t NoModRefCount, ModCount, RefCount, ModRefCount; variable
42 MustAliasCount(), NoModRefCount(), ModCount(), RefCount(), in AAEvaluator()
49 ModCount(Arg.ModCount), RefCount(Arg.RefCount), in AAEvaluator()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DAliasAnalysisEvaluator.h36 int64_t NoModRefCount, ModCount, RefCount, ModRefCount; variable
42 MustAliasCount(), NoModRefCount(), ModCount(), RefCount(), in AAEvaluator()
50 ModCount(Arg.ModCount), RefCount(Arg.RefCount), in AAEvaluator()
/external/llvm-project/llvm/include/llvm/Analysis/
DAliasAnalysisEvaluator.h36 int64_t NoModRefCount, ModCount, RefCount, ModRefCount; variable
42 MustAliasCount(), NoModRefCount(), ModCount(), RefCount(), in AAEvaluator()
50 ModCount(Arg.ModCount), RefCount(Arg.RefCount), in AAEvaluator()
/external/mesa3d/src/mesa/program/
Dprogram.c109 ctx->ATIFragmentShader.Current->RefCount++; in _mesa_init_program()
126 ctx->ATIFragmentShader.Current->RefCount--; in _mesa_free_program_data()
127 if (ctx->ATIFragmentShader.Current->RefCount <= 0) { in _mesa_free_program_data()
154 ctx->ATIFragmentShader.Current->RefCount--; in _mesa_update_default_objects_program()
155 if (ctx->ATIFragmentShader.Current->RefCount <= 0) { in _mesa_update_default_objects_program()
161 ctx->ATIFragmentShader.Current->RefCount++; in _mesa_update_default_objects_program()
193 prog->RefCount = 1; in _mesa_init_gl_program()
252 assert(prog->RefCount==0); in _mesa_delete_program()
323 assert(oldProg->RefCount > 0); in _mesa_reference_program_()
325 if (p_atomic_dec_zero(&oldProg->RefCount)) { in _mesa_reference_program_()
[all …]
/external/llvm-project/clang/include/clang/Rewrite/Core/
DRewriteRope.h34 unsigned RefCount; member
37 void Retain() { ++RefCount; } in Retain()
40 assert(RefCount > 0 && "Reference count is already zero."); in Release()
41 if (--RefCount == 0) in Release()
/external/llvm/lib/CodeGen/
DInterferenceCache.h49 unsigned RefCount; variable
97 Entry() : PhysReg(0), Tag(0), RefCount(0), Indexes(nullptr), LIS(nullptr) {} in Entry()
109 void addRef(int Delta) { RefCount += Delta; } in addRef()
111 bool hasRefs() const { return RefCount > 0; } in hasRefs()
/external/clang/include/clang/Rewrite/Core/
DRewriteRope.h35 unsigned RefCount; member
38 void Retain() { ++RefCount; } in Retain()
41 assert(RefCount > 0 && "Reference count is already zero."); in Release()
42 if (--RefCount == 0) in Release()
/external/mesa3d/src/egl/main/
Degldisplay.c416 res->RefCount = 1; in _eglInitResource()
426 assert(res && res->RefCount > 0); in _eglGetResource()
428 res->RefCount++; in _eglGetResource()
438 assert(res && res->RefCount > 0); in _eglPutResource()
439 res->RefCount--; in _eglPutResource()
440 return (!res->RefCount); in _eglPutResource()
486 assert(res->RefCount); in _eglUnlinkResource()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DIntrusiveRefCntPtr.h99 mutable std::atomic<int> RefCount; variable
102 ThreadSafeRefCountedBase() : RefCount(0) {} in ThreadSafeRefCountedBase()
105 void Retain() const { RefCount.fetch_add(1, std::memory_order_relaxed); } in Retain()
108 int NewRefCount = RefCount.fetch_sub(1, std::memory_order_acq_rel) - 1; in Release()
/external/llvm/include/llvm/ADT/
DIntrusiveRefCntPtr.h101 mutable std::atomic<int> RefCount; variable
104 ThreadSafeRefCountedBase() : RefCount(0) {} in ThreadSafeRefCountedBase()
107 void Retain() const { ++RefCount; } in Retain()
110 int NewRefCount = --RefCount; in Release()
/external/crosvm/disk/src/qcow/
Drefcount.rs51 pub struct RefCount { struct
60 impl RefCount { implementation
71 ) -> io::Result<RefCount> { in new() argument
79 Ok(RefCount { in new()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DInterferenceCache.h54 unsigned RefCount = 0; variable
113 void addRef(int Delta) { RefCount += Delta; } in addRef()
115 bool hasRefs() const { return RefCount > 0; } in hasRefs()
/external/llvm-project/llvm/lib/CodeGen/
DInterferenceCache.h54 unsigned RefCount = 0; variable
113 void addRef(int Delta) { RefCount += Delta; } in addRef()
115 bool hasRefs() const { return RefCount > 0; } in hasRefs()
/external/llvm-project/compiler-rt/lib/xray/
Dxray_buffer_queue.cpp46 if (atomic_fetch_sub(&C->RefCount, 1, memory_order_acq_rel) == 1) in decRefCount()
53 atomic_fetch_add(&C->RefCount, 1, memory_order_acq_rel); in incRefCount()
115 atomic_store(&BackingStore->RefCount, 1, memory_order_release); in init()
116 atomic_store(&ExtentsBackingStore->RefCount, 1, memory_order_release); in init()

1234