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