diff options
author | Mathias Agopian <mathias@google.com> | 2009-07-13 15:00:46 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-07-13 18:37:40 -0700 |
commit | a2f5e212448f36f0b35cf695d13bb4defdb4472e (patch) | |
tree | 6c5fe5b6f2c8134de44af2f271505445d63750a2 /libc/bionic | |
parent | 733f7deeb72c38e4d83e1b1fc9f237712fa84d52 (diff) | |
download | bionic-a2f5e212448f36f0b35cf695d13bb4defdb4472e.zip bionic-a2f5e212448f36f0b35cf695d13bb4defdb4472e.tar.gz bionic-a2f5e212448f36f0b35cf695d13bb4defdb4472e.tar.bz2 |
added pthread_cond_timedwait_relative_np()
Diffstat (limited to 'libc/bionic')
-rw-r--r-- | libc/bionic/pthread.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libc/bionic/pthread.c b/libc/bionic/pthread.c index ec3c459..5712840 100644 --- a/libc/bionic/pthread.c +++ b/libc/bionic/pthread.c @@ -1204,6 +1204,7 @@ int pthread_cond_timedwait(pthread_cond_t *cond, } +/* this one exists only for backward binary compatibility */ int pthread_cond_timedwait_monotonic(pthread_cond_t *cond, pthread_mutex_t * mutex, const struct timespec *abstime) @@ -1211,6 +1212,20 @@ int pthread_cond_timedwait_monotonic(pthread_cond_t *cond, return __pthread_cond_timedwait(cond, mutex, abstime, CLOCK_MONOTONIC); } +int pthread_cond_timedwait_monotonic_np(pthread_cond_t *cond, + pthread_mutex_t * mutex, + const struct timespec *abstime) +{ + return __pthread_cond_timedwait(cond, mutex, abstime, CLOCK_MONOTONIC); +} + +int pthread_cond_timedwait_relative_np(pthread_cond_t *cond, + pthread_mutex_t * mutex, + const struct timespec *reltime) +{ + return __pthread_cond_timedwait_relative(cond, mutex, reltime); +} + int pthread_cond_timeout_np(pthread_cond_t *cond, pthread_mutex_t * mutex, unsigned msecs) |