aboutsummaryrefslogtreecommitdiffstats
path: root/atomic/unix/mutex.c
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-05-31 20:56:05 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-05-31 20:56:05 +0000
commita6c43c64d9419dfa888b1c478e658e3e20a4af11 (patch)
treec44233797692f5a1878dfd1d614e5674a3c0e0a6 /atomic/unix/mutex.c
parentf7eb533f85d0941dbf6edb3081f065e4c010b8cc (diff)
downloadsrc-vendor/apr.tar.gz
src-vendor/apr.zip
Vendor import apr-1.7.0vendor/apr/apr-1.7.0vendor/apr
Notes
Notes: svn path=/vendor/apr/dist/; revision=361666 svn path=/vendor/apr/apr-1.7.0/; revision=361667; tag=vendor/apr/apr-1.7.0
Diffstat (limited to 'atomic/unix/mutex.c')
-rw-r--r--atomic/unix/mutex.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/atomic/unix/mutex.c b/atomic/unix/mutex.c
index fba3be2ba150..45bc5e2d9951 100644
--- a/atomic/unix/mutex.c
+++ b/atomic/unix/mutex.c
@@ -15,6 +15,7 @@
*/
#include "apr_arch_atomic.h"
+#include "apr_thread_mutex.h"
#ifdef USE_ATOMICS_GENERIC
@@ -70,7 +71,7 @@ APR_DECLARE(apr_status_t) apr_atomic_init(apr_pool_t *p)
}
}
- return APR_SUCCESS;
+ return apr__atomic_generic64_init(p);
}
static APR_INLINE apr_thread_mutex_t *mutex_hash(volatile apr_uint32_t *mem)
@@ -88,7 +89,7 @@ static APR_INLINE apr_thread_mutex_t *mutex_hash(volatile apr_uint32_t *mem)
APR_DECLARE(apr_status_t) apr_atomic_init(apr_pool_t *p)
{
- return APR_SUCCESS;
+ return apr__atomic_generic64_init(p);
}
#endif /* APR_HAS_THREADS */