From b5bfaaf9c27996d672f7aad67fee24581ab2f218 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Thu, 23 Jun 2016 16:55:38 -0400 Subject: posix: cond_timedwait remember and use clock from condattr updates #2745 --- cpukit/score/src/condition.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/score/src/condition.c') diff --git a/cpukit/score/src/condition.c b/cpukit/score/src/condition.c index 90717bc93e..b9e14adce8 100644 --- a/cpukit/score/src/condition.c +++ b/cpukit/score/src/condition.c @@ -141,7 +141,7 @@ int _Condition_Wait_timed( _Thread_queue_Context_initialize( &queue_context ); _ISR_lock_ISR_disable( &queue_context.Lock_context ); - switch ( _TOD_Absolute_timeout_to_ticks( abstime, &ticks ) ) { + switch ( _TOD_Absolute_timeout_to_ticks( abstime, CLOCK_REALTIME, &ticks ) ) { case TOD_ABSOLUTE_TIMEOUT_INVALID: _ISR_lock_ISR_enable( &queue_context.Lock_context ); return EINVAL; @@ -203,7 +203,7 @@ int _Condition_Wait_recursive_timed( _Thread_queue_Context_initialize( &queue_context ); _ISR_lock_ISR_disable( &queue_context.Lock_context ); - switch ( _TOD_Absolute_timeout_to_ticks( abstime, &ticks ) ) { + switch ( _TOD_Absolute_timeout_to_ticks( abstime, CLOCK_REALTIME, &ticks ) ) { case TOD_ABSOLUTE_TIMEOUT_INVALID: _ISR_lock_ISR_enable( &queue_context.Lock_context ); return EINVAL; -- cgit v1.2.3