aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_cond_init.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-18 11:25:37 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-18 11:25:37 +0000
commitd5cb838958b610de0bef12722860030eec964aaf (patch)
treebd0337f638429219ab9b0e2a246a5631588d0232 /nptl/pthread_cond_init.c
parent86a9ee5e87cc084ccce131cd51166c98ea87f28f (diff)
downloadglibc-d5cb838958b610de0bef12722860030eec964aaf.zip
glibc-d5cb838958b610de0bef12722860030eec964aaf.tar.gz
glibc-d5cb838958b610de0bef12722860030eec964aaf.tar.bz2
Update.
2003-03-18 Ulrich Drepper <drepper@redhat.com> * Versions.def: Add GLIBC_2.3.3 for libpthread.
Diffstat (limited to 'nptl/pthread_cond_init.c')
-rw-r--r--nptl/pthread_cond_init.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/nptl/pthread_cond_init.c b/nptl/pthread_cond_init.c
index e079ae9..12a38fb 100644
--- a/nptl/pthread_cond_init.c
+++ b/nptl/pthread_cond_init.c
@@ -17,7 +17,7 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
-#include <shlib-compat.h>
+#include <shlib-compat.h>
#include "pthreadP.h"
@@ -26,11 +26,12 @@ __pthread_cond_init (cond, cond_attr)
pthread_cond_t *cond;
const pthread_condattr_t *cond_attr;
{
- /* Note that we don't need the COND-ATTR. It contains only the
- PSHARED flag which is unimportant here since conditional
- variables are always usable in multiple processes. */
+ /* Note that we don't need the PSHARED information from COND-ATTR.
+ Conditional variables are always usable in multiple processes. */
+ struct pthread_condattr *icond_attr = (struct pthread_condattr *) cond_attr;
cond->__data.__lock = LLL_MUTEX_LOCK_INITIALIZER;
+ cond->__data.__clock = (icond_attr->value & 0xfe) >> 1;
cond->__data.__total_seq = 0;
cond->__data.__wakeup_seq = 0;
cond->__data.__woken_seq = 0;