about summary refs log tree commit diff
path: root/linuxthreads/semaphore.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-06-13 23:12:19 +0000
committerUlrich Drepper <drepper@redhat.com>2001-06-13 23:12:19 +0000
commitbad6065c9735bfe391439cb76adc84c101438ec0 (patch)
treec57fe098c0c2b2397a75f5a9ec4fe952fe38d618 /linuxthreads/semaphore.h
parentb50a2c3f9667b17148b6df4718239eabab3c3d1f (diff)
downloadglibc-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/semaphore.h')
-rw-r--r--linuxthreads/semaphore.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/linuxthreads/semaphore.h b/linuxthreads/semaphore.h
index fa0e52ddeb..9c283c8644 100644
--- a/linuxthreads/semaphore.h
+++ b/linuxthreads/semaphore.h
@@ -31,11 +31,7 @@ typedef struct _pthread_descr_struct *_pthread_descr;
 /* System specific semaphore definition.  */
 typedef struct
 {
-  struct
-  {
-    long int __status;
-    int __spinlock;
-  } __sem_lock;
+  struct _pthread_fastlock __sem_lock;
   int __sem_value;
   _pthread_descr __sem_waiting;
 } sem_t;