New macro to select stack implementation based on CAS-double
authorIvan Maidanski <ivmai@mail.ru>
Wed, 20 Dec 2017 21:52:57 +0000 (00:52 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 22 Dec 2017 07:47:10 +0000 (10:47 +0300)
commit165173c9761220e7d75312258b43c4c24c9f8113
tree041967ea003ac7f6171561131b85ffc0284ff62f
parentaf76b0c9a9a94b1a8f1b4f845a7906a047af12ef
New macro to select stack implementation based on CAS-double

The macro is AO_STACK_PREFER_CAS_DOUBLE.  This is only for testing.

* src/atomic_ops_stack.c [!USE_ALMOST_LOCK_FREE
&& AO_HAVE_compare_double_and_swap_double && AO_STACK_PREFER_CAS_DOUBLE
&& AO_HAVE_compare_and_swap_double] (AO_stack_pop_acquire,
AO_stack_pop_acquire): Use implementation based compare_and_swap_double
instead of compare_double_and_swap_double); remove #error directive.
src/atomic_ops_stack.c