diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-06-13 23:12:19 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-06-13 23:12:19 +0000 |
commit | bad6065c9735bfe391439cb76adc84c101438ec0 (patch) | |
tree | c57fe098c0c2b2397a75f5a9ec4fe952fe38d618 /linuxthreads/rwlock.c | |
parent | b50a2c3f9667b17148b6df4718239eabab3c3d1f (diff) | |
download | glibc-bad6065c9735bfe391439cb76adc84c101438ec0.tar.gz glibc-bad6065c9735bfe391439cb76adc84c101438ec0.tar.xz glibc-bad6065c9735bfe391439cb76adc84c101438ec0.zip |
* semaphore.h: Use struct _pthread_fastlock as an element of
sem_t instead of an identical struct. * rwlock.c: Remove casts. * semaphore.c: Likewise.
Diffstat (limited to 'linuxthreads/rwlock.c')
-rw-r--r-- | linuxthreads/rwlock.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |