summaryrefslogtreecommitdiff
path: root/locks
diff options
context:
space:
mode:
Diffstat (limited to 'locks')
-rw-r--r--locks/unix/thread_mutex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/locks/unix/thread_mutex.c b/locks/unix/thread_mutex.c
index e304bcb5c..db637cdf0 100644
--- a/locks/unix/thread_mutex.c
+++ b/locks/unix/thread_mutex.c
@@ -114,7 +114,7 @@ APR_DECLARE(apr_status_t) apr_thread_mutex_lock(apr_thread_mutex_t *mutex)
* testing the mutex is owned by this thread, so a deadlock is expected.
*/
if (apr_os_thread_equal(mutex->owner, apr_os_thread_current())) {
- apr_atomic_inc(mutex->owner_ref);
+ apr_atomic_inc(&mutex->owner_ref);
return APR_SUCCESS;
}
@@ -162,7 +162,7 @@ APR_DECLARE(apr_status_t) apr_thread_mutex_trylock(apr_thread_mutex_t *mutex)
* the trylock.
*/
if (apr_os_thread_equal(mutex->owner, apr_os_thread_current())) {
- apr_atomic_inc(mutex->owner_ref);
+ apr_atomic_inc(&mutex->owner_ref);
return APR_SUCCESS;
}
@@ -215,7 +215,7 @@ APR_DECLARE(apr_status_t) apr_thread_mutex_unlock(apr_thread_mutex_t *mutex)
return APR_EINVAL;
}
- if (apr_atomic_dec(mutex->owner_ref) != 0)
+ if (apr_atomic_dec(&mutex->owner_ref) != 0)
return APR_SUCCESS;
mutex->owner = 0;
}