From 5fd4a9816573a3b6a244b73b84ce0cec871321da Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 7 Mar 2011 17:39:13 -0500 Subject: use the selected clock from the condattr for pthread_cond_timedwait --- src/thread/pthread_cond_init.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/thread/pthread_cond_init.c') diff --git a/src/thread/pthread_cond_init.c b/src/thread/pthread_cond_init.c index 33948606..dc4fb981 100644 --- a/src/thread/pthread_cond_init.c +++ b/src/thread/pthread_cond_init.c @@ -3,5 +3,6 @@ int pthread_cond_init(pthread_cond_t *c, const pthread_condattr_t *a) { memset(c, 0, sizeof *c); + if (a) c->_c_clock = *a & 0x7fffffff; return 0; } -- cgit v1.2.1