/third_party/mindspore/tests/ut/cpp/dataset/ |
D | queue_test.cc | 40 class RefCount { class 42 RefCount() : v_(nullptr) {} in RefCount() function in RefCount 43 explicit RefCount(int x) : v_(std::make_shared<int>(x)) {} in RefCount() function in RefCount 44 RefCount(const RefCount &o) : v_(o.v_) {} in RefCount() function in RefCount 45 ~RefCount() { in ~RefCount() 49 RefCount &operator=(const RefCount &o) { in operator =() 53 RefCount(RefCount &&o) : v_(std::move(o.v_)) {} in RefCount() function in RefCount 54 RefCount &operator=(RefCount &&o) { in operator =() 139 Queue<RefCount> que(3); in test4() 140 RefCount a(3); in test4() [all …]
|
/third_party/mesa3d/src/mesa/main/ |
D | shaderobj.c | 71 assert(old->RefCount > 0); in _reference_shader() 73 if (p_atomic_dec_zero(&old->RefCount)) { in _reference_shader() 89 p_atomic_inc(&sh->RefCount); in _reference_shader() 104 shader->RefCount = 1; in _mesa_init_shader() 221 assert(oldData->RefCount > 0); in _mesa_reference_shader_program_data() 223 if (p_atomic_dec_zero(&oldData->RefCount)) { in _mesa_reference_shader_program_data() 238 p_atomic_inc(&data->RefCount); in _mesa_reference_shader_program_data() 263 assert(old->RefCount > 0); in _mesa_reference_shader_program_() 265 if (p_atomic_dec_zero(&old->RefCount)) { in _mesa_reference_shader_program_() 278 p_atomic_inc(&shProg->RefCount); in _mesa_reference_shader_program_() [all …]
|
D | renderbuffer.c | 46 rb->RefCount = 1; in _mesa_init_renderbuffer() 149 assert(rb->RefCount == 1); in _mesa_attach_and_own_rb() 201 assert(oldRb->RefCount > 0); in _mesa_reference_renderbuffer_() 203 if (p_atomic_dec_zero(&oldRb->RefCount)) { in _mesa_reference_renderbuffer_() 211 p_atomic_inc(&rb->RefCount); in _mesa_reference_renderbuffer_()
|
D | shared.c | 128 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() 486 assert(old->RefCount >= 1); in _mesa_reference_shared_state() 487 old->RefCount--; in _mesa_reference_shared_state() 488 delete = (old->RefCount == 0); in _mesa_reference_shared_state() 501 state->RefCount++; in _mesa_reference_shared_state()
|
D | glspirv.h | 44 unsigned RefCount; member 59 GLint RefCount; member
|
D | glspirv.c | 42 if (old && p_atomic_dec_zero(&old->RefCount)) in _mesa_spirv_module_reference() 48 p_atomic_inc(&src->RefCount); in _mesa_spirv_module_reference() 57 if (old && p_atomic_dec_zero(&old->RefCount)) { in _mesa_shader_spirv_data_reference() 65 p_atomic_inc(&src->RefCount); in _mesa_shader_spirv_data_reference() 82 p_atomic_set(&module->RefCount, 0); in _mesa_spirv_shader_binary()
|
D | syncobj.c | 185 syncObj->RefCount++; in _mesa_get_and_ref_sync() 202 syncObj->RefCount -= amount; in _mesa_unref_sync_object() 203 if (syncObj->RefCount == 0) { in _mesa_unref_sync_object() 287 syncObj->RefCount = 1; in fence_sync()
|
D | framebuffer.c | 118 fb->RefCount = 1; in _mesa_initialize_window_framebuffer() 167 fb->RefCount = 1; in _mesa_initialize_user_framebuffer() 204 assert(fb->RefCount == 0); in _mesa_free_framebuffer_data() 241 assert(oldFb->RefCount > 0); in _mesa_reference_framebuffer_() 242 oldFb->RefCount--; in _mesa_reference_framebuffer_() 243 deleteFlag = (oldFb->RefCount == 0); in _mesa_reference_framebuffer_() 254 fb->RefCount++; in _mesa_reference_framebuffer_()
|
D | pipelineobj.c | 82 obj->RefCount = 1; in _mesa_new_pipeline_object() 189 assert(oldObj->RefCount > 0); in _mesa_reference_pipeline_object_() 190 oldObj->RefCount--; in _mesa_reference_pipeline_object_() 192 if (oldObj->RefCount == 0) { in _mesa_reference_pipeline_object_() 202 assert(obj->RefCount > 0); in _mesa_reference_pipeline_object_() 204 obj->RefCount++; in _mesa_reference_pipeline_object_()
|
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/port/ |
D | refcount.h | 107 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()
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/port/ |
D | refcount.h | 107 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()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | IntrusiveRefCntPtr.h | 71 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()
|
/third_party/vk-gl-cts/framework/delibs/decpp/ |
D | dePoolArray.cpp | 189 class RefCount class 192 RefCount (void) in RefCount() function in de::__anon680878180111::RefCount 197 RefCount (int* count) in RefCount() function in de::__anon680878180111::RefCount 203 RefCount (const RefCount& other) in RefCount() function in de::__anon680878180111::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()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | AliasAnalysisEvaluator.h | 36 int64_t NoModRefCount, ModCount, RefCount, ModRefCount; variable 42 MustAliasCount(), NoModRefCount(), ModCount(), RefCount(), in AAEvaluator() 50 ModCount(Arg.ModCount), RefCount(Arg.RefCount), in AAEvaluator()
|
D | AliasSetTracker.h | 157 unsigned RefCount : 27; variable 190 void addRef() { ++RefCount; } in addRef() 193 assert(RefCount >= 1 && "Invalid reference count detected!"); in dropRef() 194 if (--RefCount == 0) in dropRef() 274 : PtrListEnd(&PtrList), RefCount(0), AliasAny(false), Access(NoAccess), in AliasSet()
|
/third_party/mesa3d/src/mesa/program/ |
D | program.c | 110 ctx->ATIFragmentShader.Current->RefCount++; in _mesa_init_program() 127 ctx->ATIFragmentShader.Current->RefCount--; in _mesa_free_program_data() 128 if (ctx->ATIFragmentShader.Current->RefCount <= 0) { in _mesa_free_program_data() 155 ctx->ATIFragmentShader.Current->RefCount--; in _mesa_update_default_objects_program() 156 if (ctx->ATIFragmentShader.Current->RefCount <= 0) { in _mesa_update_default_objects_program() 162 ctx->ATIFragmentShader.Current->RefCount++; in _mesa_update_default_objects_program() 194 prog->RefCount = 1; in _mesa_init_gl_program() 253 assert(prog->RefCount==0); in _mesa_delete_program() 324 assert(oldProg->RefCount > 0); in _mesa_reference_program_() 326 if (p_atomic_dec_zero(&oldProg->RefCount)) { in _mesa_reference_program_() [all …]
|
/third_party/mesa3d/src/egl/main/ |
D | egldisplay.c | 430 res->RefCount = 1; in _eglInitResource() 440 assert(res && res->RefCount > 0); in _eglGetResource() 442 res->RefCount++; in _eglGetResource() 452 assert(res && res->RefCount > 0); in _eglPutResource() 453 res->RefCount--; in _eglPutResource() 454 return (!res->RefCount); in _eglPutResource() 500 assert(res->RefCount); in _eglUnlinkResource()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | IntrusiveRefCntPtr.h | 99 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()
|
/third_party/mindspore/mindspore/lite/src/train/ |
D | static_allocator.h | 36 if (RefCount(ptr) != 0) free(ptr); in Free() 39 int RefCount(void *ptr) override { in RefCount() function
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | InterferenceCache.h | 54 unsigned RefCount = 0; variable 113 void addRef(int Delta) { RefCount += Delta; } in addRef() 115 bool hasRefs() const { return RefCount > 0; } in hasRefs()
|
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/ |
D | NaClBitCodes.h | 272 unsigned char RefCount; // Number of things using this. 276 NaClBitCodeAbbrev() : RefCount(1) {} 278 void addRef() { ++RefCount; } 280 if (--RefCount == 0)
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | AliasAnalysisEvaluator.cpp | 251 ++RefCount; in runInternal() 298 ++RefCount; in runInternal() 361 int64_t ModRefSum = NoModRefCount + RefCount + ModCount + ModRefCount + in ~AAEvaluator() 372 errs() << " " << RefCount << " ref responses "; in ~AAEvaluator() 373 PrintPercent(RefCount, ModRefSum); in ~AAEvaluator() 386 << ModCount * 100 / ModRefSum << "%/" << RefCount * 100 / ModRefSum in ~AAEvaluator()
|
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/table/ |
D | font_data_table.h | 28 class FontDataTable : virtual public RefCount { 32 class Builder : virtual public RefCount {
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/table/ |
D | font_data_table.h | 28 class FontDataTable : virtual public RefCount { 32 class Builder : virtual public RefCount {
|
/third_party/grpc/src/core/lib/gprpp/ |
D | ref_counted.h | 47 class RefCount { 55 explicit RefCount( 330 RefCount refs_;
|