diff options
author | rpj <rpj> | 2001-02-06 05:44:38 +0000 |
---|---|---|
committer | rpj <rpj> | 2001-02-06 05:44:38 +0000 |
commit | 25f0d94be4e63b1a3cea1844bc4be7849c452a75 (patch) | |
tree | a124e65563367a4f2d3780128e29a7bddddf2b4e /rwlock.c | |
parent | 9171eeaa77aaa6c4c34a88f5305ee3ebbc63077c (diff) |
Created experimental branch.
Diffstat (limited to 'rwlock.c')
-rw-r--r-- | rwlock.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -231,7 +231,7 @@ pthread_rwlock_destroy(pthread_rwlock_t *rwlock) } static void -_rwlock_cancelrdwait(void * arg) +ptw32_rwlock_cancelrdwait(void * arg) { pthread_rwlock_t rw; @@ -286,7 +286,7 @@ pthread_rwlock_rdlock(pthread_rwlock_t *rwlock) while (rw->rw_refcount < 0 || rw->rw_nwaitwriters > 0) { rw->rw_nwaitreaders++; - pthread_cleanup_push(_rwlock_cancelrdwait, rw); + pthread_cleanup_push(ptw32_rwlock_cancelrdwait, rw); result = pthread_cond_wait(&(rw->rw_condreaders), &(rw->rw_lock)); pthread_cleanup_pop(0); rw->rw_nwaitreaders--; @@ -309,7 +309,7 @@ FAIL1: } static void -_rwlock_cancelwrwait(void * arg) +ptw32_rwlock_cancelwrwait(void * arg) { pthread_rwlock_t rw; @@ -360,7 +360,7 @@ pthread_rwlock_wrlock(pthread_rwlock_t * rwlock) while (rw->rw_refcount != 0) { rw->rw_nwaitwriters++; - pthread_cleanup_push(_rwlock_cancelwrwait, rw); + pthread_cleanup_push(ptw32_rwlock_cancelwrwait, rw); result = pthread_cond_wait(&(rw->rw_condwriters), &(rw->rw_lock)); pthread_cleanup_pop(0); rw->rw_nwaitwriters--; |