diff options
author | Gedare Bloom <gedare@rtems.org> | 2016-06-23 16:55:38 -0400 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2016-07-25 12:44:47 -0400 |
commit | b5bfaaf9c27996d672f7aad67fee24581ab2f218 (patch) | |
tree | 6504cee5972cd9003f5b36c58e4d94a020fde9fa /cpukit/score/src/condition.c | |
parent | posix: refactor cond wait support to defer abstime conversion (diff) | |
download | rtems-b5bfaaf9c27996d672f7aad67fee24581ab2f218.tar.bz2 |
posix: cond_timedwait remember and use clock from condattr
updates #2745
Diffstat (limited to 'cpukit/score/src/condition.c')
-rw-r--r-- | cpukit/score/src/condition.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |