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