summaryrefslogtreecommitdiff
path: root/implement.h
diff options
context:
space:
mode:
authorrpj <rpj>1999-09-16 13:21:21 +0000
committerrpj <rpj>1999-09-16 13:21:21 +0000
commitf20ec5ec3497e7d1a8301d3c7ec6652dab1c3247 (patch)
treef7e2090fa5da2196b5bd4b575f1520b18051a0d0 /implement.h
parent70597d7147b86dd972a803e185f05c0e7de80586 (diff)
Thu Sep 16 1999 Ross Johnson <rpj@swan.canberra.edu.au>
* rwlock.c (pthread_rwlock_destroy): Add serialisation. (_rwlock_check_need_init): Check for detroyed rwlock. * rwlock.c: Check return codes from _rwlock_check_need_init(); modify comments; serialise access to rwlock objects during operations; rename rw_mutex to rw_lock. * implement.h: Rename rw_mutex to rw_lock. * mutex.c (pthread_mutex_destroy): Add serialisation. (_mutex_check_need_init): Check for detroyed mutex. * condvar.c (pthread_cond_destroy): Add serialisation. (_cond_check_need_init): Check for detroyed condvar. * mutex.c: Modify comments. * condvar.c: Modify comments.
Diffstat (limited to 'implement.h')
-rw-r--r--implement.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/implement.h b/implement.h
index b48b2f2..70836dc 100644
--- a/implement.h
+++ b/implement.h
@@ -164,7 +164,7 @@ struct pthread_condattr_t_ {
#define RW_MAGIC 0x19283746
struct pthread_rwlock_t_ {
- pthread_mutex_t rw_mutex; /* basic lock on this struct */
+ pthread_mutex_t rw_lock; /* basic lock on this struct */
pthread_cond_t rw_condreaders; /* for reader threads waiting */
pthread_cond_t rw_condwriters; /* for writer threads waiting */
int rw_magic; /* for error checking */