Minor refactoring to the atomics implementation
authorKonstantin Ritt <ritt.ks@gmail.com>
Fri, 27 Mar 2015 20:49:33 +0000 (00:49 +0400)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 8 Apr 2015 20:04:22 +0000 (13:04 -0700)
commit3f174cd020b7762fae96f20ce14fc9e9abec748f
tree174c69f94aca3d9ad32199378caff9418c080313
parent24930d544ee9e247e4cf6a5f6d5207ba9d7a3ddc
Minor refactoring to the atomics implementation

s/atomic_int/atomic_int_impl/ and s/atomic_ptr/atomic_ptr_impl/
to bring it in par with hb_mutex_impl_t, then re-introduce
hb_atomic_int_t as a wrapper around hb_atomic_int_impl_t.

In hb_reference_count_t, make it clear the non-atomic get and set
are intentional due to nature of the cases they are used in
(comparison to -1 and the debug output/tracing).
src/hb-atomic-private.hh
src/hb-mutex-private.hh
src/hb-object-private.hh