summaryrefslogtreecommitdiffstats
path: root/libc/include
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-07-13 15:00:46 -0700
committerMathias Agopian <mathias@google.com>2009-07-13 18:37:40 -0700
commita2f5e212448f36f0b35cf695d13bb4defdb4472e (patch)
tree6c5fe5b6f2c8134de44af2f271505445d63750a2 /libc/include
parent733f7deeb72c38e4d83e1b1fc9f237712fa84d52 (diff)
downloadbionic-a2f5e212448f36f0b35cf695d13bb4defdb4472e.zip
bionic-a2f5e212448f36f0b35cf695d13bb4defdb4472e.tar.gz
bionic-a2f5e212448f36f0b35cf695d13bb4defdb4472e.tar.bz2
added pthread_cond_timedwait_relative_np()
Diffstat (limited to 'libc/include')
-rw-r--r--libc/include/pthread.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/libc/include/pthread.h b/libc/include/pthread.h
index e3afdae..ae7b758 100644
--- a/libc/include/pthread.h
+++ b/libc/include/pthread.h
@@ -179,10 +179,30 @@ int pthread_cond_timedwait(pthread_cond_t *cond,
* to the CLOCK_MONOTONIC clock instead, to avoid any problems when
* the wall-clock time is changed brutally
*/
+int pthread_cond_timedwait_monotonic_np(pthread_cond_t *cond,
+ pthread_mutex_t *mutex,
+ const struct timespec *abstime);
+
+/* BIONIC: DEPRECATED. same as pthread_cond_timedwait_monotonic_np()
+ * unfortunately pthread_cond_timedwait_monotonic has shipped already
+ */
int pthread_cond_timedwait_monotonic(pthread_cond_t *cond,
pthread_mutex_t *mutex,
const struct timespec *abstime);
+#define HAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC 1
+
+/* BIONIC: same as pthread_cond_timedwait, except the 'reltime' given refers
+ * is relative to the current time.
+ */
+int pthread_cond_timedwait_relative_np(pthread_cond_t *cond,
+ pthread_mutex_t *mutex,
+ const struct timespec *reltime);
+
+#define HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE 1
+
+
+
int pthread_cond_timeout_np(pthread_cond_t *cond,
pthread_mutex_t * mutex,
unsigned msecs);