summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-07-14 06:52:23 +0000
committerEric Andersen <andersen@codepoet.org>2002-07-14 06:52:23 +0000
commit252f321a08fdc29c103591834fbf01945db59ff0 (patch)
tree3b101396a92e65db48bdba68dd8c568eee26ef2a
parent45f83eeb35e5bffa8b9c8f22ec8e0281f4013a7b (diff)
Add missing pthread_condattr_getpshared and pthread_condattr_setpshared
-Erik
-rw-r--r--libpthread/linuxthreads/condvar.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/libpthread/linuxthreads/condvar.c b/libpthread/linuxthreads/condvar.c
index 85754a18f..405d9bab4 100644
--- a/libpthread/linuxthreads/condvar.c
+++ b/libpthread/linuxthreads/condvar.c
@@ -415,3 +415,22 @@ int pthread_condattr_destroy(pthread_condattr_t *attr)
{
return 0;
}
+
+int pthread_condattr_getpshared (const pthread_condattr_t *attr, int *pshared)
+{
+ *pshared = PTHREAD_PROCESS_PRIVATE;
+ return 0;
+}
+
+int pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared)
+{
+ if (pshared != PTHREAD_PROCESS_PRIVATE && pshared != PTHREAD_PROCESS_SHARED)
+ return EINVAL;
+
+ /* For now it is not possible to shared a conditional variable. */
+ if (pshared != PTHREAD_PROCESS_PRIVATE)
+ return ENOSYS;
+
+ return 0;
+}
+