Home
last modified time | relevance | path

Searched defs:hb_reference_count_t (Results 1 – 1 of 1) sorted by relevance

/aosp_15_r20/external/harfbuzz_ng/src/
H A Dhb-object.hh143 struct hb_reference_count_t struct
145 mutable hb_atomic_int_t ref_count;
147 void init (int v = 1) { ref_count = v; } in init()
148 int get_relaxed () const { return ref_count; } 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 = -0x0000DEAD; } in fini()
153 bool is_inert () const { return !ref_count; } in is_inert()
154 bool is_valid () const { return ref_count > 0; } in is_valid()