Home
last modified time | relevance | path

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

/external/harfbuzz_ng/src/
Dhb-atomic.hh278 struct hb_atomic_ptr_t struct
280 typedef hb_remove_pointer<P> T;
282 void init (T* v_ = nullptr) { set_relaxed (v_); } in init()
283 void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } in set_relaxed()
284 T *get_relaxed () const { return (T *) hb_atomic_ptr_impl_get_relaxed (&v); } in get_relaxed()
285 T *get () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } in get()
286 …, T *new_) const { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } in cmpexch()
288 T * operator -> () const { return get (); } in operator ->()
289 template <typename C> operator C * () const { return get (); } in operator C*()
291 T *v;