Home
last modified time | relevance | path

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

/external/harfbuzz_ng/src/
Dhb-object-private.hh54 struct hb_reference_count_t struct
56 hb_atomic_int_t ref_count;
58 inline void init (int v) { ref_count.set_unsafe (v); } in init()
59 inline int get_unsafe (void) const { return ref_count.get_unsafe (); } in get_unsafe()
60 inline int inc (void) { return ref_count.inc (); } in inc()
61 inline int dec (void) { return ref_count.dec (); } in dec()
62 inline void finish (void) { ref_count.set_unsafe (HB_REFERENCE_COUNT_POISON_VALUE); } in finish()
64 …ne bool is_inert (void) const { return ref_count.get_unsafe () == HB_REFERENCE_COUNT_INERT_VALUE; } in is_inert()
65 inline bool is_valid (void) const { return ref_count.get_unsafe () > 0; } in is_valid()