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/posix/src/condtimedwait.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 '')
-rw-r--r-- | cpukit/posix/src/condtimedwait.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/posix/src/condtimedwait.c b/cpukit/posix/src/condtimedwait.c index 6c0b14f27b..1b338c8ae6 100644 --- a/cpukit/posix/src/condtimedwait.c +++ b/cpukit/posix/src/condtimedwait.c @@ -31,6 +31,9 @@ int pthread_cond_timedwait( const struct timespec *abstime ) { + if ( abstime == NULL ) { + return EINVAL; /* not specified */ + } return _POSIX_Condition_variables_Wait_support( cond, mutex, |