diff options
author | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2019-01-17 16:04:55 +0000 |
---|---|---|
committer | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2019-01-17 16:04:55 +0000 |
commit | 724388969ef203d0cfed72dc3c337584525deba1 (patch) | |
tree | a65dc86f217d3dcb2fd078edff5527180fd9588f /atomic/netware | |
parent | c77a92dd1ae85ee6dba132c88ad4ada23ecae359 (diff) | |
download | libapr-724388969ef203d0cfed72dc3c337584525deba1.tar.gz |
atomics: follow up to r1841078: provide specific initializer for generic 64bit
The can't be two apr_atomic_init(), atomic/mutex64.c shouldn't implement one
since generic/mutex implementation may be used by several platforms.
So introduce private apr__atomic_generic64_init() and use it where needed.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1851541 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'atomic/netware')
-rw-r--r-- | atomic/netware/apr_atomic.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/atomic/netware/apr_atomic.c b/atomic/netware/apr_atomic.c index d7e00cd4e..9785fd3c2 100644 --- a/atomic/netware/apr_atomic.c +++ b/atomic/netware/apr_atomic.c @@ -14,14 +14,17 @@ * limitations under the License. */ -#include "apr.h" -#include "apr_atomic.h" +#include "apr_arch_atomic.h" #include <stdlib.h> APR_DECLARE(apr_status_t) apr_atomic_init(apr_pool_t *pool) { +#if defined (NEED_ATOMICS_GENERIC64) + return apr__atomic_generic64_init(p); +#else return APR_SUCCESS; +#endif } APR_DECLARE(apr_uint32_t) apr_atomic_add32(volatile apr_uint32_t *mem, apr_uint32_t val) |