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