Home
last modified time | relevance | path

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

1234

/external/webrtc/webrtc/base/
Dcallback_unittest.cc40 int RefCount() const { return count_; } in RefCount() function in rtc::__anona9cefe470111::RefCountedBindTester
100 EXPECT_EQ(0, t.RefCount()); in TEST()
103 EXPECT_EQ(1, t.RefCount()); in TEST()
105 EXPECT_EQ(1, t.RefCount()); in TEST()
107 EXPECT_EQ(1, t.RefCount()); in TEST()
109 EXPECT_EQ(0, t.RefCount()); in TEST()
114 EXPECT_EQ(0, t.RefCount()); in TEST()
118 EXPECT_EQ(1, t.RefCount()); in TEST()
121 EXPECT_EQ(1, t.RefCount()); in TEST()
123 EXPECT_EQ(0, t.RefCount()); in TEST()
[all …]
/external/spirv-llvm/lib/SPIRV/Mangler/
DRefcount.h21 class RefCount{
23 RefCount(): m_refCount(0), m_ptr(0) { in RefCount() function
26 RefCount(T* ptr): m_ptr(ptr) { in RefCount() function
30 RefCount(const RefCount<T>& other) { in RefCount() function
34 ~RefCount() { in ~RefCount()
39 RefCount& operator=(const RefCount<T>& other) {
92 void cpy(const RefCount<T>& other) { in cpy()
/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()
209 assert(oldData->RefCount > 0); in _mesa_reference_shader_program_data()
211 if (p_atomic_dec_zero(&oldData->RefCount)) { in _mesa_reference_shader_program_data()
226 p_atomic_inc(&data->RefCount); in _mesa_reference_shader_program_data()
251 assert(old->RefCount > 0); in _mesa_reference_shader_program_()
253 if (p_atomic_dec_zero(&old->RefCount)) { in _mesa_reference_shader_program_()
264 p_atomic_inc(&shProg->RefCount); in _mesa_reference_shader_program_()
[all …]
Drenderbuffer.c47 rb->RefCount = 1; in _mesa_init_renderbuffer()
151 assert(rb->RefCount == 1); in _mesa_attach_and_own_rb()
205 assert(oldRb->RefCount > 0); in _mesa_reference_renderbuffer_()
206 oldRb->RefCount--; in _mesa_reference_renderbuffer_()
207 deleteFlag = (oldRb->RefCount == 0); in _mesa_reference_renderbuffer_()
222 rb->RefCount++; in _mesa_reference_renderbuffer_()
Dglspirv.c34 if (old && p_atomic_dec_zero(&old->RefCount)) in _mesa_spirv_module_reference()
40 p_atomic_inc(&src->RefCount); in _mesa_spirv_module_reference()
49 if (old && p_atomic_dec_zero(&old->RefCount)) { in _mesa_shader_spirv_data_reference()
57 p_atomic_inc(&src->RefCount); in _mesa_shader_spirv_data_reference()
76 p_atomic_set(&module->RefCount, 0); in _mesa_spirv_shader_binary()
Dshared.c126 assert(shared->DefaultTex[TEXTURE_1D_INDEX]->RefCount == 1); in _mesa_alloc_shared_state()
192 assert(prog->RefCount == 1); /* should only be referenced by hash table */ in delete_program_cb()
193 prog->RefCount = 0; /* now going away */ in delete_program_cb()
273 fb->RefCount = 0; in delete_framebuffer_cb()
291 rb->RefCount = 0; /* see comment for FBOs above */ in delete_renderbuffer_cb()
463 assert(old->RefCount >= 1); in _mesa_reference_shared_state()
464 old->RefCount--; in _mesa_reference_shared_state()
465 delete = (old->RefCount == 0); in _mesa_reference_shared_state()
478 state->RefCount++; in _mesa_reference_shared_state()
Dglspirv.h40 unsigned RefCount; member
55 GLint RefCount; member
/external/sfntly/cpp/src/sfntly/port/
Drefcount.h105 class RefCount {
108 virtual ~RefCount() {} in ~RefCount()
119 class RefCounted : virtual public RefCount {
198 RefCount* p = static_cast<RefCount*>(pT);
247 RefCount* p = static_cast<RefCount*>(p_); 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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DIntrusiveRefCntPtr.h72 mutable unsigned RefCount = 0; variable
78 void Retain() const { ++RefCount; } in Retain()
81 assert(RefCount > 0 && "Reference count is already zero."); in Release()
82 if (--RefCount == 0) in Release()
89 mutable std::atomic<int> RefCount; variable
92 ThreadSafeRefCountedBase() : RefCount(0) {} in ThreadSafeRefCountedBase()
95 void Retain() const { RefCount.fetch_add(1, std::memory_order_relaxed); } in Retain()
98 int NewRefCount = RefCount.fetch_sub(1, std::memory_order_acq_rel) - 1; in Release()
/external/deqp/framework/delibs/decpp/
DdePoolArray.cpp189 class RefCount class
192 RefCount (void) in RefCount() function in de::__anon4738aa570111::RefCount
197 RefCount (int* count) in RefCount() function in de::__anon4738aa570111::RefCount
203 RefCount (const RefCount& other) in RefCount() function in de::__anon4738aa570111::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/libxcam/xcore/
Dsmartptr.h30 class RefCount; variable
33 friend class RefCount; variable
56 class RefCount
60 RefCount () : RefObj (1) {} in RefCount() function
75 RefCount* generate_ref_count (Obj *, std::false_type) in generate_ref_count()
77 return new RefCount; in generate_ref_count()
166 XCAM_ASSERT (dynamic_cast<RefCount*>(_ref)); in release()
/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-7.0/llvm/include/llvm/Analysis/
DAliasAnalysisEvaluator.h37 int64_t NoModRefCount, ModCount, RefCount, ModRefCount; variable
43 MustAliasCount(), NoModRefCount(), ModCount(), RefCount(), in AAEvaluator()
51 ModCount(Arg.ModCount), RefCount(Arg.RefCount), in AAEvaluator()
/external/mesa3d/src/mesa/program/
Dprogram.c108 ctx->ATIFragmentShader.Current->RefCount++; in _mesa_init_program()
125 ctx->ATIFragmentShader.Current->RefCount--; in _mesa_free_program_data()
126 if (ctx->ATIFragmentShader.Current->RefCount <= 0) { in _mesa_free_program_data()
153 ctx->ATIFragmentShader.Current->RefCount--; in _mesa_update_default_objects_program()
154 if (ctx->ATIFragmentShader.Current->RefCount <= 0) { in _mesa_update_default_objects_program()
160 ctx->ATIFragmentShader.Current->RefCount++; in _mesa_update_default_objects_program()
192 prog->RefCount = 1; in _mesa_init_gl_program()
262 assert(prog->RefCount==0); in _mesa_delete_program()
333 assert(oldProg->RefCount > 0); in _mesa_reference_program_()
335 if (p_atomic_dec_zero(&oldProg->RefCount)) { in _mesa_reference_program_()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Bitcode/
DBitCodes.h164 unsigned char RefCount; // Number of things using this. variable
167 BitCodeAbbrev() : RefCount(1) {} in BitCodeAbbrev()
169 void addRef() { ++RefCount; } in addRef()
170 void dropRef() { if (--RefCount == 0) delete this; } in dropRef()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DInterferenceCache.h47 unsigned RefCount; variable
74 Entry() : PhysReg(0), Tag(0), RefCount(0), Indexes(0) {} in Entry()
85 void addRef(int Delta) { RefCount += Delta; } in addRef()
87 bool hasRefs() const { return RefCount > 0; } in hasRefs()
/external/mesa3d/src/egl/main/
Degldisplay.c375 res->RefCount = 1; in _eglInitResource()
385 assert(res && res->RefCount > 0); in _eglGetResource()
387 res->RefCount++; in _eglGetResource()
397 assert(res && res->RefCount > 0); in _eglPutResource()
398 res->RefCount--; in _eglPutResource()
399 return (!res->RefCount); in _eglPutResource()
445 assert(res->RefCount); in _eglUnlinkResource()
/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/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/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/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/lib/Analysis/
DAliasAnalysisEvaluator.cpp258 ++RefCount; in runInternal()
285 ++RefCount; in runInternal()
328 int64_t ModRefSum = NoModRefCount + ModCount + RefCount + ModRefCount; in ~AAEvaluator()
338 errs() << " " << RefCount << " ref responses "; in ~AAEvaluator()
339 PrintPercent(RefCount, ModRefSum); in ~AAEvaluator()
344 << ModCount * 100 / ModRefSum << "%/" << RefCount * 100 / ModRefSum in ~AAEvaluator()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DInterferenceCache.h55 unsigned RefCount = 0; variable
114 void addRef(int Delta) { RefCount += Delta; } in addRef()
116 bool hasRefs() const { return RefCount > 0; } in hasRefs()
/external/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/
DNaClBitCodes.h259 unsigned char RefCount; // Number of things using this.
262 NaClBitCodeAbbrev() : RefCount(1) {}
264 void addRef() { ++RefCount; }
265 void dropRef() { if (--RefCount == 0) delete this; }

1234