diff options
author | Yann Ylavic <ylavic@apache.org> | 2019-01-17 16:04:55 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2019-01-17 16:04:55 +0000 |
commit | 9331bb21c90998c57e8de42f1e54283d544b55f1 (patch) | |
tree | a65dc86f217d3dcb2fd078edff5527180fd9588f /atomic/os390 | |
parent | 10844ff2397be5269e3586fb2d7f7865ddd3d94b (diff) | |
download | apr-9331bb21c90998c57e8de42f1e54283d544b55f1.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: https://svn.apache.org/repos/asf/apr/apr/trunk@1851541 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'atomic/os390')
-rw-r--r-- | atomic/os390/atomic.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/atomic/os390/atomic.c b/atomic/os390/atomic.c index 8fd158602..249ee15c2 100644 --- a/atomic/os390/atomic.c +++ b/atomic/os390/atomic.c @@ -14,15 +14,17 @@ * limitations under the License. */ - -#include "apr.h" -#include "apr_atomic.h" +#include "apr_arch_atomic.h" #include <stdlib.h> apr_status_t apr_atomic_init(apr_pool_t *p) { +#if defined (NEED_ATOMICS_GENERIC64) + return apr__atomic_generic64_init(p); +#else return APR_SUCCESS; +#endif } apr_uint32_t apr_atomic_add32(volatile apr_uint32_t *mem, apr_uint32_t val) |