diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2003-08-08 19:20:23 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2003-08-08 19:20:23 +0000 |
commit | 6862cdf0fe9e1a2135e3d632b6f93b222cd6a824 (patch) | |
tree | 06bca1fc203c5c109c3c816328c5d79bda5edfe3 /locks | |
parent | 674537718eb565b94edd4dd2138457998b04769f (diff) | |
download | libapr-6862cdf0fe9e1a2135e3d632b6f93b222cd6a824.tar.gz |
Thanks to Jeff for pointing out I didn't point to the atomics.
Fixes build breakage.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64581 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r-- | locks/unix/thread_mutex.c | 6 |
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; } |