]> granicus.if.org Git - libatomic_ops/commit
Test store/CAS emulation explicitly
authorIvan Maidanski <ivmai@mail.ru>
Fri, 3 Feb 2017 16:19:32 +0000 (19:19 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 3 Feb 2017 17:06:23 +0000 (20:06 +0300)
commit0add78973e4d92adbc0c53c7084210d518fbe530
treec1784c53d9276ff75d60a03391ac28e0ebae214b
parent9c26b86c78664090e03909b2c67174d47f391579
Test store/CAS emulation explicitly

* tests/Makefile.am (test_atomic_generalized_CPPFLAGS): Add
-D AO_TEST_EMULATION.
* tests/test_atomic.c [(!_MSC_VER && !__MINGW32__ && !__BORLANDC__
|| AO_USE_NO_SIGNALS || AO_USE_WIN32_PTHREADS) && AO_TEST_EMULATION]
(AO_store_full_emulation, AO_fetch_compare_and_swap_emulation): Declare
prototype.
* tests/test_atomic.c [(!_MSC_VER && !__MINGW32__ && !__BORLANDC__
|| AO_USE_NO_SIGNALS || AO_USE_WIN32_PTHREADS) && AO_TEST_EMULATION
&& AO_HAVE_double_t] (AO_compare_double_and_swap_double_emulation):
Likewise.
* tests/test_atomic.c (test_atomic_emulation): New function (or a macro
defined to empty if AO_*_emulation primitives are unavailable).
* tests/test_atomic.c (main): Call test_atomic_emulation().
tests/Makefile.am
tests/test_atomic.c