]> granicus.if.org Git - libatomic_ops/commit
Remove duplicate AO_spin and AO_pause definition in atomic_ops_stack
authorIvan Maidanski <ivmai@mail.ru>
Thu, 4 Oct 2012 12:49:03 +0000 (16:49 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 4 Oct 2012 12:53:48 +0000 (16:53 +0400)
commita5a424e526272545fcb7faeadd9a910776c31ecc
tree79cb9e752d8bd93d241a0ad21d895ade952396c0
parentc9b493d00ffab61f0efab8946507482b4ba39217
Remove duplicate AO_spin and AO_pause definition in atomic_ops_stack

* src/atomic_ops.c (AO_REQUIRE_CAS): Undefine and include atomic_ops.h
unconditionally.
* src/atomic_ops.c (AO_USE_WIN32_PTHREADS): Define macro (and include
windows.h) if Win32 (non-POSIX) to have Sleep-based implementation of
AO_pause.
* src/atomic_ops.c (dummy, AO_spin, AO_pause): Define unconditionally
(to be always available for atomic_ops_stack).
* src/atomic_ops.c (dummy): Rename to spin_dummy.
* src/atomic_ops_stack.c (dummy, AO_spin, AO_pause): Remove definition
(for Win32); remove FIXME.
* src/atomic_ops_stack.c (AO_pause): Declare if
AO_USE_ALMOST_LOCK_FREE defined.
src/atomic_ops.c
src/atomic_ops_stack.c