Changeset 9a99aa5 in mainline for uspace/lib/posix/source/time.c
- Timestamp:
- 2017-05-30T19:35:46Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 316795c
- Parents:
- 134e3f1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/source/time.c
r134e3f1 r9a99aa5 45 45 #include "posix/assert.h" 46 46 47 #include "libc/fibril_synch.h" 47 48 #include "libc/malloc.h" 48 49 #include "libc/task.h" … … 50 51 #include "libc/stdbool.h" 51 52 #include "libc/stddef.h" 52 #include "libc/thread.h"53 53 #include "libc/sys/time.h" 54 54 … … 315 315 // TODO: interruptible sleep 316 316 if (rqtp->tv_sec != 0) { 317 thread_sleep(rqtp->tv_sec);317 fibril_sleep(rqtp->tv_sec); 318 318 } 319 319 if (rqtp->tv_nsec != 0) { 320 thread_usleep(rqtp->tv_nsec / 1000);320 fibril_usleep(rqtp->tv_nsec / 1000); 321 321 } 322 322 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.