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