Minor rename

This commit is contained in:
Behdad Esfahbod 2015-04-09 12:04:14 -07:00
parent f3b170bdd9
commit 9c974360fe
1 changed files with 5 additions and 5 deletions

View File

@ -148,12 +148,12 @@ typedef int hb_atomic_int_impl_t;
struct hb_atomic_int_t struct hb_atomic_int_t
{ {
hb_atomic_int_impl_t ref; hb_atomic_int_impl_t v;
inline void set_unsafe (int v) { ref = v; } inline void set_unsafe (int v_) { v = v_; }
inline int get_unsafe (void) const { return ref; } inline int get_unsafe (void) const { return v; }
inline int inc (void) { return hb_atomic_int_impl_add (const_cast<hb_atomic_int_impl_t &> (ref), 1); } inline int inc (void) { return hb_atomic_int_impl_add (const_cast<hb_atomic_int_impl_t &> (v), 1); }
inline int dec (void) { return hb_atomic_int_impl_add (const_cast<hb_atomic_int_impl_t &> (ref), -1); } inline int dec (void) { return hb_atomic_int_impl_add (const_cast<hb_atomic_int_impl_t &> (v), -1); }
}; };