[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Apr 9 12:04:21 PDT 2015


 src/hb-atomic-private.hh |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 9c974360febcfd67247107352425fe8590d9d452
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Apr 9 12:04:14 2015 -0700

    Minor rename

diff --git a/src/hb-atomic-private.hh b/src/hb-atomic-private.hh
index e2249e9..8179571 100644
--- a/src/hb-atomic-private.hh
+++ b/src/hb-atomic-private.hh
@@ -148,12 +148,12 @@ typedef int hb_atomic_int_impl_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 int get_unsafe (void) const { return ref; }
-  inline int inc (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 &> (ref), -1); }
+  inline void set_unsafe (int v_) { v = v_; }
+  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 &> (v),  1); }
+  inline int dec (void) { return hb_atomic_int_impl_add (const_cast<hb_atomic_int_impl_t &> (v), -1); }
 };
 
 


More information about the HarfBuzz mailing list