Glibc's sleep() call is non-functional at the moment (it calls
__nanosleep() under the hood, which is stubbed out still). Until we
fix that, you can get a thread to sleep by calling uthread_sleep().
That call issues sys_block() under the hood, which does a NULL syscall
that takes X number of microseconds to complete. Per our normal async
syscall path, the thread is then blocked in user-space for the
duration of the call.
> --
> You received this message because you are subscribed to the Google Groups
> "Akaros" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
akaros+un...@googlegroups.com.
> To post to this group, send email to
aka...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
--
~Kevin