Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/harfbuzz/src/
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.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()