[HarfBuzz] harfbuzz-ng: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Thu May 17 19:01:22 PDT 2012
src/hb-atomic-private.hh | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit bd908b4f102b5ae18a3ad4a8b137994cf74b86ce
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Thu May 17 22:02:08 2012 -0400
Implement hb_atomic_int_set() for OS X
diff --git a/src/hb-atomic-private.hh b/src/hb-atomic-private.hh
index a348f95..03d7df1 100644
--- a/src/hb-atomic-private.hh
+++ b/src/hb-atomic-private.hh
@@ -56,6 +56,8 @@ typedef long hb_atomic_int_t;
#include <libkern/OSAtomic.h>
typedef int32_t hb_atomic_int_t;
#define hb_atomic_int_add(AI, V) (OSAtomicAdd32Barrier((V), &(AI)), (AI) - (V))
+#define hb_atomic_int_set(AI, V) \
+ do {} while (!OSAtomicCompareAndSwap32 (hb_atomic_int_get (AI), (V), (&(AI))))
#define hb_atomic_int_get(AI) OSAtomicAdd32Barrier(0, &(AI))
More information about the HarfBuzz
mailing list