iosleep.c 240 B

12345678910111213141516171819
  1. #include <u.h>
  2. #include <libc.h>
  3. #include <thread.h>
  4. #include "threadimpl.h"
  5. static long
  6. _iosleep(va_list *arg)
  7. {
  8. long n;
  9. n = va_arg(*arg, long);
  10. return sleep(n);
  11. }
  12. int
  13. iosleep(Ioproc *io, long n)
  14. {
  15. return iocall(io, _iosleep, n);
  16. }