about summary refs log tree commit diff
path: root/nptl/pthreadP.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2006-02-28 09:57:07 +0000
committerRoland McGrath <roland@gnu.org>2006-02-28 09:57:07 +0000
commita5f2bd861c4c84ac66164951a7f32e1d6f57849c (patch)
tree513c87adf7cf9e919713fc3e0f55959a6b2f6d3b /nptl/pthreadP.h
parent8d2e6a0383b6958311f021ee0b8b7eba44110f5a (diff)
downloadglibc-a5f2bd861c4c84ac66164951a7f32e1d6f57849c.tar.gz
glibc-a5f2bd861c4c84ac66164951a7f32e1d6f57849c.tar.xz
glibc-a5f2bd861c4c84ac66164951a7f32e1d6f57849c.zip
* elf/rtld-Rules (subdir-args): New variable.
	(rtld-subdir-make): Use it.
Diffstat (limited to 'nptl/pthreadP.h')
-rw-r--r--nptl/pthreadP.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/nptl/pthreadP.h b/nptl/pthreadP.h
index 77d8f5ad24..a4d6d1a1ae 100644
--- a/nptl/pthreadP.h
+++ b/nptl/pthreadP.h
@@ -66,15 +66,24 @@ enum
   PTHREAD_MUTEX_ROBUST_PRIVATE_ERRORCHECK_NP
   = PTHREAD_MUTEX_ROBUST_PRIVATE_NP | PTHREAD_MUTEX_ERRORCHECK_NP,
   PTHREAD_MUTEX_ROBUST_PRIVATE_ADAPTIVE_NP
-  = PTHREAD_MUTEX_ROBUST_PRIVATE_NP | PTHREAD_MUTEX_ADAPTIVE_NP
+  = PTHREAD_MUTEX_ROBUST_PRIVATE_NP | PTHREAD_MUTEX_ADAPTIVE_NP,
+  PTHREAD_MUTEX_PRIO_INHERIT_PRIVATE_NP = 32,
+  PTHREAD_MUTEX_PRIO_PROTECT_PRIVATE_NP = 64
 };
+#define PTHREAD_MUTEX_PRIO_CEILING_SHIFT	16
+#define PTHREAD_MUTEX_PRIO_CEILING_MASK		0x00ff0000
 
 
 /* Flags in mutex attr.  */
-#define PTHREAD_MUTEXATTR_FLAG_ROBUST	0x40000000
-#define PTHREAD_MUTEXATTR_FLAG_PSHARED	0x80000000
+#define PTHREAD_MUTEXATTR_PROTOCOL_SHIFT	28
+#define PTHREAD_MUTEXATTR_PROTOCOL_MASK		0x30000000
+#define PTHREAD_MUTEXATTR_PRIO_CEILING_SHIFT	16
+#define PTHREAD_MUTEXATTR_PRIO_CEILING_MASK	0x00ff0000
+#define PTHREAD_MUTEXATTR_FLAG_ROBUST		0x40000000
+#define PTHREAD_MUTEXATTR_FLAG_PSHARED		0x80000000
 #define PTHREAD_MUTEXATTR_FLAG_BITS \
-  (PTHREAD_MUTEXATTR_FLAG_ROBUST | PTHREAD_MUTEXATTR_FLAG_PSHARED)
+  (PTHREAD_MUTEXATTR_FLAG_ROBUST | PTHREAD_MUTEXATTR_FLAG_PSHARED \
+   | PTHREAD_MUTEXATTR_PROTOCOL_MASK | PTHREAD_MUTEXATTR_PRIO_CEILING_MASK)
 
 
 /* Bits used in robust mutex implementation.  */