From f20ec5ec3497e7d1a8301d3c7ec6652dab1c3247 Mon Sep 17 00:00:00 2001 From: rpj Date: Thu, 16 Sep 1999 13:21:21 +0000 Subject: Thu Sep 16 1999 Ross Johnson * 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. --- implement.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'implement.h') 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 */ -- cgit v1.2.3