From bad6065c9735bfe391439cb76adc84c101438ec0 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 13 Jun 2001 23:12:19 +0000 Subject: * semaphore.h: Use struct _pthread_fastlock as an element of sem_t instead of an identical struct. * rwlock.c: Remove casts. * semaphore.c: Likewise. --- linuxthreads/rwlock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'linuxthreads/rwlock.c') diff --git a/linuxthreads/rwlock.c b/linuxthreads/rwlock.c index 6af57cdff0..e39597014d 100644 --- a/linuxthreads/rwlock.c +++ b/linuxthreads/rwlock.c @@ -36,9 +36,9 @@ static int rwlock_rd_extricate_func(void *obj, pthread_descr th) pthread_rwlock_t *rwlock = obj; int did_remove = 0; - __pthread_lock((struct _pthread_fastlock *) &rwlock->__rw_lock, NULL); + __pthread_lock(&rwlock->__rw_lock, NULL); did_remove = remove_from_queue(&rwlock->__rw_read_waiting, th); - __pthread_unlock((struct _pthread_fastlock *) &rwlock->__rw_lock); + __pthread_unlock(&rwlock->__rw_lock); return did_remove; } @@ -48,9 +48,9 @@ static int rwlock_wr_extricate_func(void *obj, pthread_descr th) pthread_rwlock_t *rwlock = obj; int did_remove = 0; - __pthread_lock((struct _pthread_fastlock *) &rwlock->__rw_lock, NULL); + __pthread_lock(&rwlock->__rw_lock, NULL); did_remove = remove_from_queue(&rwlock->__rw_write_waiting, th); - __pthread_unlock((struct _pthread_fastlock *) &rwlock->__rw_lock); + __pthread_unlock(&rwlock->__rw_lock); return did_remove; } -- cgit 1.4.1