Home
last modified time | relevance | path

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

12345

/external/harfbuzz_ng/src/
Dhb-object.hh149 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 …]
/external/libexif/libexif/
Dexif-log.c30 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()
Dexif-mnote-data.c31 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()
Dexif-mem.c6 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()
Dexif-content.c36 unsigned int ref_count; member
70 content->priv->ref_count = 1; in exif_content_new_mem()
81 content->priv->ref_count++; in exif_content_ref()
87 content->priv->ref_count--; in exif_content_unref()
88 if (!content->priv->ref_count) in exif_content_unref()
/external/libcups/cups/
Dstring.c90 item->ref_count ++; in _cupsStrAlloc()
95 item->ref_count)); in _cupsStrAlloc()
119 item->ref_count = 1; in _cupsStrAlloc()
127 item->ref_count)); in _cupsStrAlloc()
323 "ref_count=%d", key, key->str, key->guard, key->ref_count)); in _cupsStrFree()
335 item->ref_count --; in _cupsStrFree()
337 if (!item->ref_count) in _cupsStrFree()
375 "ref_count=%d", item, s, item->guard, item->ref_count)); in _cupsStrRetain()
382 item->ref_count ++; in _cupsStrRetain()
559 count += item->ref_count; in _cupsStrStatistics()
[all …]
/external/webrtc/webrtc/modules/desktop_capture/
Dshared_desktop_frame.cc31 int32_t ref_count; in Release() local
32 ref_count = --ref_count_; in Release()
33 if (ref_count == 0) in Release()
35 return ref_count; in Release()
/external/webrtc/webrtc/system_wrappers/include/
Dref_count.h69 int32_t ref_count; in Release() local
70 ref_count = --ref_count_; in Release()
71 if (ref_count == 0) in Release()
73 return ref_count; in Release()
/external/webrtc/webrtc/voice_engine/
Dchannel_manager.cc24 ++channel_ref_->ref_count; in ChannelOwner()
28 if (--channel_ref_->ref_count == 0) in ~ChannelOwner()
36 if (--channel_ref_->ref_count == 0) in operator =()
40 ++channel_ref_->ref_count; in operator =()
46 : channel(channel), ref_count(1) {} in ChannelRef()
Dchannel_manager.h58 int use_count() const { return channel_ref_->ref_count.Value(); } in use_count()
66 Atomic32 ref_count; member
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/sched/sched_set_boost/
Dformat9 field:unsigned int ref_count; offset:8; size:4; signed:0;
11 print fmt: "ref_count=%d", REC->ref_count
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/operators/
Drx-ref_count.hpp85 struct ref_count : public operator_base<T> struct
129 explicit ref_count(connectable_type source) in ref_count() function
140 ref_count(connectable_type other, in ref_count() function
172 auto ref_count(AN&&... an) in ref_count() function
186 class RefCount = rxo::detail::ref_count<SourceValue, rxu::decay_t<ConnectableObservable>>,
200 class RefCount = rxo::detail::ref_count<SourceValue,
/external/python/pybind11/tests/
Dtest_kwargs_and_defaults.cpp66 m.def("arg_refcount_h", [](py::handle h) { GC_IF_NEEDED; return h.ref_count(); }); in TEST_SUBMODULE()
67 …arg_refcount_h", [](py::handle h, py::handle, py::handle) { GC_IF_NEEDED; return h.ref_count(); }); in TEST_SUBMODULE()
68 m.def("arg_refcount_o", [](py::object o) { GC_IF_NEEDED; return o.ref_count(); }); in TEST_SUBMODULE()
80 t[0] = o.ref_count(); in TEST_SUBMODULE()
/external/mesa3d/src/gallium/winsys/sw/kms-dri/
Dkms_dri_sw_winsys.c84 int ref_count; member
179 kms_sw_dt->ref_count = 1; in kms_sw_displaytarget_create()
225 kms_sw_dt->ref_count --; in kms_sw_displaytarget_destroy()
226 if (kms_sw_dt->ref_count > 0) in kms_sw_displaytarget_destroy()
292 kms_sw_dt->ref_count++; in kms_sw_displaytarget_find_and_ref()
324 kms_sw_dt->ref_count --; in kms_sw_displaytarget_add_from_prime()
341 kms_sw_dt->ref_count = 1; in kms_sw_displaytarget_add_from_prime()
421 kms_sw_dt->ref_count --; in kms_sw_displaytarget_from_handle()
/external/perfetto/src/profiling/common/
Dinterner.h52 size_t ref_count = 0; member
63 entry_->ref_count++; in Interned()
112 entry.ref_count++; in Intern()
122 if (--entry->ref_count == 0) in Return()
/external/swiftshader/src/Vulkan/
DVkSemaphoreExternalLinux.hpp72 ref_count++; in addRef()
80 bool result = (--ref_count == 0); in deref()
126 int ref_count = 1; member in SharedSemaphore
/external/elfutils/libelf/
Dcommon.h80 result->ref_count = 1; in allocate_elf()
108 if (child->ref_count != 0) in libelf_acquire_all()
126 if (child->ref_count != 0) in libelf_release_all()
Delf_end.c54 if (elf->ref_count != 0 && --elf->ref_count != 0) in elf_end()
57 int result = elf->ref_count; in elf_end()
236 return (parent != NULL && parent->ref_count == 0 in elf_end()
/external/libvpx/libvpx/vp9/common/
Dvp9_onyxc_int.h67 int ref_count; member
307 if (frame_bufs[i].ref_count == 0) break; in get_free_fb()
310 frame_bufs[i].ref_count = 1; in get_free_fb()
322 if (ref_index >= 0 && bufs[ref_index].ref_count > 0) in ref_cnt_fb()
323 bufs[ref_index].ref_count--; in ref_cnt_fb()
327 bufs[new_idx].ref_count++; in ref_cnt_fb()
/external/libvpx/libvpx/vp9/decoder/
Dvp9_decoder.h171 if (idx >= 0 && frame_bufs[idx].ref_count > 0) { in decrease_ref_count()
172 --frame_bufs[idx].ref_count; in decrease_ref_count()
177 if (!frame_bufs[idx].released && frame_bufs[idx].ref_count == 0 && in decrease_ref_count()
/external/sfntly/cpp/src/sfntly/port/
Drefcount.h248 size_t ref_count = 0; in Release() local
252 ref_count = p->Release(); in Release()
256 return ref_count; in Release()
/external/e2fsprogs/e2fsck/
Dpass4.c94 __u64 ref_count; in check_ea_inode() local
118 ref_count = ext2fs_get_ea_inode_ref(EXT2_INODE(inode)); in check_ea_inode()
123 if (ref_count != actual_refs && inode->i_ctime != inode->i_atime) { in check_ea_inode()
128 pctx.num = ref_count; in check_ea_inode()
/external/tensorflow/tensorflow/compiler/xla/service/
Dallocation_tracker.cc229 it->second.ref_count++; in AddAllocationOrIncrementRefCount()
239 TF_RET_CHECK(allocation.ref_count >= 1); in DecrementRefCount()
240 if (allocation.ref_count == 1) { in DecrementRefCount()
244 allocation.ref_count--; in DecrementRefCount()
/external/tensorflow/tensorflow/python/framework/
Derrors_test.py39 ref_count = 0
43 ref_count += 1
47 return ref_count
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dir2_ra.c127 reg->comp[swiz_get(src->swizzle, i)].ref_count++; in ra_count_refs()
170 if (reg->comp[i].ref_count == 0) { in ra_reg()
202 if (!--comp->ref_count && reg->block_idx_free < 0) { in ra_src_free()

12345