/third_party/glib/gobject/tests/ |
D | reference.c | 120 g_assert_cmpint (tmp->ref_count, ==, 1); in test_clear() 124 g_assert_cmpint (tmp->ref_count, ==, 2); in test_clear() 126 g_assert_cmpint (tmp->ref_count, ==, 1); in test_clear() 142 g_assert_cmpint (tmp->ref_count, ==, 1); in test_clear_function() 146 g_assert_cmpint (tmp->ref_count, ==, 2); in test_clear_function() 148 g_assert_cmpint (tmp->ref_count, ==, 1); in test_clear_function() 167 g_assert_cmpint (tmp->ref_count, ==, 1); in test_set() 171 g_assert_cmpint (tmp->ref_count, ==, 2); in test_set() 174 g_assert_cmpint (tmp->ref_count, ==, 1); in test_set() 179 g_assert_cmpint (tmp->ref_count, ==, 1); in test_set() [all …]
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/ |
D | gstvideoutils.c | 115 GST_TRACE ("%p ref %d->%d", frame, frame->ref_count, frame->ref_count + 1); in gst_video_codec_frame_ref() 117 g_atomic_int_inc (&frame->ref_count); in gst_video_codec_frame_ref() 133 g_return_if_fail (frame->ref_count > 0); in gst_video_codec_frame_unref() 135 GST_TRACE ("%p unref %d->%d", frame, frame->ref_count, frame->ref_count - 1); in gst_video_codec_frame_unref() 137 if (g_atomic_int_dec_and_test (&frame->ref_count)) { in gst_video_codec_frame_unref() 156 GST_TRACE ("%p ref %d->%d", state, state->ref_count, state->ref_count + 1); in gst_video_codec_state_ref() 158 g_atomic_int_inc (&state->ref_count); in gst_video_codec_state_ref() 192 g_return_if_fail (state->ref_count > 0); in gst_video_codec_state_unref() 194 GST_TRACE ("%p unref %d->%d", state, state->ref_count, state->ref_count - 1); in gst_video_codec_state_unref() 196 if (g_atomic_int_dec_and_test (&state->ref_count)) { in gst_video_codec_state_unref()
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | hb-object.hh | 145 mutable hb_atomic_int_t ref_count; member 147 void init (int v = 1) { ref_count.set_relaxed (v); } in init() 148 int get_relaxed () const { return ref_count.get_relaxed (); } in get_relaxed() 149 int inc () const { return ref_count.inc (); } in inc() 150 int dec () const { return ref_count.dec (); } in dec() 151 void fini () { ref_count.set_relaxed (-0x0000DEAD); } in fini() 153 bool is_inert () const { return !ref_count.get_relaxed (); } in is_inert() 154 bool is_valid () const { return ref_count.get_relaxed () > 0; } in is_valid() 195 hb_reference_count_t ref_count; member 199 bool is_inert () const { return !ref_count.get_relaxed (); } in is_inert() [all …]
|
/third_party/harfbuzz/src/ |
D | hb-object.hh | 147 mutable hb_atomic_int_t ref_count; member 149 void init (int v = 1) { ref_count.set_relaxed (v); } in init() 150 int get_relaxed () const { return ref_count.get_relaxed (); } in get_relaxed() 151 int inc () const { return ref_count.inc (); } in inc() 152 int dec () const { return ref_count.dec (); } in dec() 153 void fini () { ref_count.set_relaxed (-0x0000DEAD); } in fini() 155 bool is_inert () const { return !ref_count.get_relaxed (); } in is_inert() 156 bool is_valid () const { return ref_count.get_relaxed () > 0; } in is_valid() 197 hb_reference_count_t ref_count; member 214 obj ? obj->header.ref_count.get_relaxed () : 0); in hb_object_trace() [all …]
|
/third_party/flutter/skia/third_party/externals/harfbuzz/src/ |
D | hb-object.hh | 149 mutable hb_atomic_int_t ref_count; member 151 void init (int v = 1) { ref_count.set_relaxed (v); } in init() 152 int get_relaxed () const { return ref_count.get_relaxed (); } in get_relaxed() 153 int inc () const { return ref_count.inc (); } in inc() 154 int dec () const { return ref_count.dec (); } in dec() 155 void fini () { ref_count.set_relaxed (HB_REFERENCE_COUNT_POISON_VALUE); } in fini() 157 bool is_inert () const { return ref_count.get_relaxed () == HB_REFERENCE_COUNT_INERT_VALUE; } in is_inert() 158 bool is_valid () const { return ref_count.get_relaxed () > 0; } in is_valid() 199 hb_reference_count_t ref_count; member 221 obj ? obj->header.ref_count.get_relaxed () : 0); in hb_object_trace() [all …]
|
/third_party/mindspore/mindspore/lite/src/runtime/ |
D | inner_allocator.cc | 116 int ref_count = std::atomic_load(&membuf->ref_count_); in RefCount() local 118 return ref_count; in RefCount() 123 int DefaultAllocator::SetRefCount(void *buf, int ref_count) { in SetRefCount() argument 131 std::atomic_store(&membuf->ref_count_, ref_count); in SetRefCount() 133 return ref_count; in SetRefCount() 138 int DefaultAllocator::IncRefCount(void *buf, int ref_count) { in IncRefCount() argument 146 auto ref = std::atomic_fetch_add(&membuf->ref_count_, ref_count); in IncRefCount() 148 return (ref + ref_count); in IncRefCount() 153 int DefaultAllocator::DecRefCount(void *buf, int ref_count) { in DecRefCount() argument 161 auto ref = std::atomic_fetch_sub(&membuf->ref_count_, ref_count); in DecRefCount() [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | h264_parse.c | 28 const int *ref_count, int slice_type_nos, in ff_h264_pred_weight_table() argument 57 for (i = 0; i < ref_count[list]; i++) { in ff_h264_pred_weight_table() 219 int ff_h264_parse_ref_count(int *plist_count, int ref_count[2], in ff_h264_parse_ref_count() 227 ref_count[0] = pps->ref_count[0]; in ff_h264_parse_ref_count() 228 ref_count[1] = pps->ref_count[1]; in ff_h264_parse_ref_count() 237 ref_count[0] = get_ue_golomb(gb) + 1; in ff_h264_parse_ref_count() 239 ref_count[1] = get_ue_golomb(gb) + 1; in ff_h264_parse_ref_count() 242 ref_count[1] = 1; in ff_h264_parse_ref_count() 250 if (ref_count[0] - 1 > max[0] || (list_count == 2 && (ref_count[1] - 1 > max[1]))) { in ff_h264_parse_ref_count() 252 ref_count[0] - 1, max[0], ref_count[1] - 1, max[1]); in ff_h264_parse_ref_count() [all …]
|
/third_party/libexif/libexif/ |
D | exif-log.c | 30 unsigned int ref_count; member 77 log->ref_count = 1; in exif_log_new_mem() 100 log->ref_count++; in exif_log_ref() 107 if (log->ref_count > 0) log->ref_count--; in exif_log_unref() 108 if (!log->ref_count) exif_log_free (log); in exif_log_unref()
|
D | exif-mnote-data.c | 31 unsigned int ref_count; member 42 d->priv->ref_count = 1; in exif_mnote_data_construct() 51 if (d && d->priv) d->priv->ref_count++; in exif_mnote_data_ref() 74 if (d->priv->ref_count > 0) d->priv->ref_count--; in exif_mnote_data_unref() 75 if (!d->priv->ref_count) in exif_mnote_data_unref()
|
D | exif-mem.c | 6 unsigned int ref_count; member 44 mem->ref_count = 1; in exif_mem_new() 57 mem->ref_count++; in exif_mem_ref() 64 if (!--mem->ref_count) in exif_mem_unref()
|
/third_party/glib/gio/ |
D | gdbusintrospection.h | 46 gint ref_count; /* (atomic) */ member 66 gint ref_count; /* (atomic) */ member 87 gint ref_count; /* (atomic) */ member 108 gint ref_count; /* (atomic) */ member 129 gint ref_count; /* (atomic) */ member 152 gint ref_count; /* (atomic) */ member 175 gint ref_count; /* (atomic) */ member
|
D | gdbusintrospection.c | 108 if (g_atomic_int_get (&info->ref_count) == -1) in g_dbus_node_info_ref() 110 g_atomic_int_inc (&info->ref_count); in g_dbus_node_info_ref() 128 if (g_atomic_int_get (&info->ref_count) == -1) in g_dbus_interface_info_ref() 130 g_atomic_int_inc (&info->ref_count); in g_dbus_interface_info_ref() 148 if (g_atomic_int_get (&info->ref_count) == -1) in g_dbus_method_info_ref() 150 g_atomic_int_inc (&info->ref_count); in g_dbus_method_info_ref() 168 if (g_atomic_int_get (&info->ref_count) == -1) in g_dbus_signal_info_ref() 170 g_atomic_int_inc (&info->ref_count); in g_dbus_signal_info_ref() 188 if (g_atomic_int_get (&info->ref_count) == -1) in g_dbus_property_info_ref() 190 g_atomic_int_inc (&info->ref_count); in g_dbus_property_info_ref() [all …]
|
/third_party/boost/tools/quickbook/src/ |
D | files.hpp | 65 unsigned ref_count; member 78 , ref_count(0) in file() 87 , ref_count(0) in file() 91 virtual ~file() { assert(!ref_count); } in ~file() 110 friend void intrusive_ptr_add_ref(file* ptr) { ++ptr->ref_count; } in intrusive_ptr_add_ref() 114 if (--ptr->ref_count == 0) delete ptr; in intrusive_ptr_release()
|
/third_party/gettext/libtextstyle/gnulib-local/lib/libcroco/ |
D | cr-cascade.c | 53 guint ref_count; member 173 PRIVATE (a_this)->ref_count++; in cr_cascade_ref() 191 if (PRIVATE (a_this)->ref_count) in cr_cascade_unref() 192 PRIVATE (a_this)->ref_count--; in cr_cascade_unref() 193 if (!PRIVATE (a_this)->ref_count) { in cr_cascade_unref()
|
D | cr-doc-handler.c | 89 result->ref_count++; in cr_doc_handler_new() 224 a_this->ref_count++; in cr_doc_handler_ref() 241 if (a_this->ref_count > 0) { in cr_doc_handler_unref() 242 a_this->ref_count--; in cr_doc_handler_unref() 245 if (a_this->ref_count == 0) { in cr_doc_handler_unref()
|
D | cr-stylesheet.c | 155 a_this->ref_count++; in cr_stylesheet_ref() 163 if (a_this->ref_count) in cr_stylesheet_unref() 164 a_this->ref_count--; in cr_stylesheet_unref() 166 if (!a_this->ref_count) { in cr_stylesheet_unref()
|
/third_party/mindspore/tests/ut/cpp/pre_activate/mem_reuse/ |
D | kernel_ref_test.cc | 44 int ref_count = 3; in TEST_F() local 50 kernel_ref_count_ptr->ref_count_ = ref_count; in TEST_F() 57 int ref_count = kernel_ref_count_ptr->ref_count_; in TEST_F() local 58 ASSERT_EQ(ref_count, 0); in TEST_F()
|
/third_party/glib/glib/ |
D | gmain.c | 275 gint ref_count; /* (atomic) */ member 306 gint ref_count; /* (atomic) */ member 316 gint ref_count; /* (atomic) */ member 529 g_return_val_if_fail (g_atomic_int_get (&context->ref_count) > 0, NULL); in g_main_context_ref() 531 g_atomic_int_inc (&context->ref_count); in g_main_context_ref() 561 g_return_if_fail (g_atomic_int_get (&context->ref_count) > 0); in g_main_context_unref() 563 if (!g_atomic_int_dec_and_test (&context->ref_count)) in g_main_context_unref() 684 context->ref_count = 1; in g_main_context_new() 961 source->ref_count = 1; in g_source_new() 1008 g_return_if_fail (g_atomic_int_get (&source->ref_count) > 0); in g_source_set_dispose_function() [all …]
|
/third_party/libsoup/libsoup/ |
D | soup-message-queue.c | 101 item->ref_count = 1; in soup_message_queue_append() 143 item->ref_count++; in soup_message_queue_item_ref() 163 if (--item->ref_count || !item->removed) { in soup_message_queue_item_unref() 221 item->ref_count++; in soup_message_queue_lookup() 251 item->ref_count++; in soup_message_queue_first() 280 next->ref_count++; in soup_message_queue_next()
|
/third_party/mindspore/include/api/ |
D | allocator.h | 62 virtual int SetRefCount(void *ptr, int ref_count) = 0; 70 virtual int DecRefCount(void *ptr, int ref_count) = 0; 78 virtual int IncRefCount(void *ptr, int ref_count) = 0;
|
/third_party/glib/glib/deprecated/ |
D | gcache.c | 64 gint ref_count; member 102 node->ref_count = 1; in g_cache_node_new() 253 node->ref_count += 1; in g_cache_insert() 292 node->ref_count -= 1; in g_cache_remove() 293 if (node->ref_count == 0) in g_cache_remove()
|
/third_party/gstreamer/gstreamer/libs/gst/base/ |
D | gstflowcombiner.c | 75 gint ref_count; member 102 g_atomic_int_set (&combiner->ref_count, 1); in gst_flow_combiner_new() 139 g_atomic_int_inc (&combiner->ref_count); in gst_flow_combiner_ref() 156 g_return_if_fail (combiner->ref_count > 0); in gst_flow_combiner_unref() 158 if (g_atomic_int_dec_and_test (&combiner->ref_count)) { in gst_flow_combiner_unref()
|
/third_party/glib/gmodule/ |
D | gmodule.c | 199 guint ref_count : 31; member 518 main_module->ref_count = 1; in g_module_open() 525 main_module->ref_count++; in g_module_open() 535 module->ref_count++; in g_module_open() 617 module->ref_count++; in g_module_open() 630 module->ref_count = 1; in g_module_open() 684 g_return_val_if_fail (module->ref_count > 0, FALSE); in g_module_close() 688 module->ref_count--; in g_module_close() 690 if (!module->ref_count && !module->is_resident && module->unload) in g_module_close() 699 if (!module->ref_count && !module->is_resident) in g_module_close()
|
/third_party/mindspore/mindspore/lite/src/train/ |
D | static_allocator.h | 26 int SetRefCount(void *ptr, int ref_count) override { return 0; } in SetRefCount() argument 27 int DecRefCount(void *ptr, int ref_count) override { return 0; } in DecRefCount() argument 28 int IncRefCount(void *ptr, int ref_count) override { return 0; } in IncRefCount() argument
|
/third_party/mindspore/mindspore/core/ir/ |
D | device_sync.h | 52 void set_ref_count(size_t ref_count) { ref_count_ = ref_count; } in set_ref_count() argument 53 size_t ref_count() const { return ref_count_; } in ref_count() function
|