diff options
Diffstat (limited to 'src/kernel/core/thread.c')
-rw-r--r-- | src/kernel/core/thread.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kernel/core/thread.c b/src/kernel/core/thread.c index f2ddf9b..37226ae 100644 --- a/src/kernel/core/thread.c +++ b/src/kernel/core/thread.c @@ -337,13 +337,13 @@ bool wait_on_many(void** x, size_t n) { return true; } +void _usleep_resume_on_v(void* x) { + resume_on(x); +} void usleep(int usecs) { if (current_thread == 0) return; - void resume_on_v(void* x) { - resume_on(x); - } - bool ok = worker_push_in(usecs, resume_on_v, current_thread); + bool ok = worker_push_in(usecs, _usleep_resume_on_v, current_thread); if (ok) wait_on(current_thread); } |