Fix double lock in a_set(f(a_get())) expression in gctest
authorIvan Maidanski <ivmai@mail.ru>
Fri, 3 Nov 2017 18:30:23 +0000 (21:30 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 3 Nov 2017 18:30:23 +0000 (21:30 +0300)
commit0f5a88d53ba02137b72a6fccfdaeaadd1f908d2f
treec5305ef57aef0015328a82fe047cc5a6e6fc9e8b
parent8f5746e507098ad505af194d385d756675e26a90
Fix double lock in a_set(f(a_get())) expression in gctest
(fix commit 8f5746e)

* tests/test.c [!AO_HAVE_store_release] (AO_store_release): Replace
macro with a static function definition (so, new_val argument is
evaluated before acquiring the lock).
tests/test.c