summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/thread.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/thread.c b/src/lib/thread.c
index 782a63ea52..a8c0772c89 100644
--- a/src/lib/thread.c
+++ b/src/lib/thread.c
@@ -332,6 +332,11 @@ int thread_run_until(void (*func)(void *), void *arg,
return 0;
}
+int thread_yield(void)
+{
+ return thread_yield_microseconds(0);
+}
+
int thread_yield_microseconds(unsigned int microsecs)
{
struct thread *current;