Add support for atomic int and mutex on Apple systems
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 24 Feb 2012 18:51:09 +0000 (13:51 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 24 Feb 2012 21:19:52 +0000 (16:19 -0500)
commita1970d9afc15b2c6b7513b923019bb223bd95154
tree2045d61163875c93bf14079a76b6336df0b91ac9
parent8004429102d7d3a8c42e1cbfe231835de4d3d782
Add support for atomic int and mutex on Apple systems

So, apparently there's no atomic int 'get' method on Apple.  You have to
add(0) to get.  And that's not const-friendly.  So switch inert-object
checking to a non-atomic get.  This, however, is safe, and a negligible
performance boost too.
src/hb-mutex-private.hh
src/hb-object-private.hh