summaryrefslogtreecommitdiff
path: root/src/threads/cnd_timedwait.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/threads/cnd_timedwait.c')
-rw-r--r--src/threads/cnd_timedwait.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/threads/cnd_timedwait.c b/src/threads/cnd_timedwait.c
new file mode 100644
index 00000000..9a68db72
--- /dev/null
+++ b/src/threads/cnd_timedwait.c
@@ -0,0 +1,7 @@
+#include <threads.h>
+#include <pthread.h>
+
+int cnd_timedwait(cnd_t *restrict cond, mtx_t *restrict mtx, const struct timespec *restrict ts)
+{
+ return pthread_cond_timedwait(cond, mtx, ts);
+}