Changes in uspace/lib/posix/source/time.c [78188e5:582a0b8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/source/time.c
r78188e5 r582a0b8 45 45 #include "posix/assert.h" 46 46 47 #include "libc/fibril_synch.h"48 47 #include "libc/malloc.h" 49 48 #include "libc/task.h" 50 49 #include "libc/stats.h" 50 #include "libc/stdbool.h" 51 51 #include "libc/stddef.h" 52 #include "libc/thread.h" 52 53 #include "libc/sys/time.h" 53 54 … … 314 315 // TODO: interruptible sleep 315 316 if (rqtp->tv_sec != 0) { 316 fibril_sleep(rqtp->tv_sec);317 thread_sleep(rqtp->tv_sec); 317 318 } 318 319 if (rqtp->tv_nsec != 0) { 319 fibril_usleep(rqtp->tv_nsec / 1000);320 thread_usleep(rqtp->tv_nsec / 1000); 320 321 } 321 322 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.