summaryrefslogtreecommitdiff
path: root/src/threads/cnd_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/threads/cnd_init.c')
-rw-r--r--src/threads/cnd_init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/threads/cnd_init.c b/src/threads/cnd_init.c
new file mode 100644
index 00000000..822076e5
--- /dev/null
+++ b/src/threads/cnd_init.c
@@ -0,0 +1,7 @@
+#include <threads.h>
+#include <pthread.h>
+
+int cnd_init(cnd_t *cond)
+{
+ return pthread_cond_init(cond, 0);
+}