Changeset 38d8849 in mainline for uspace/lib/posix/src
- Timestamp:
- 2018-07-16T15:58:51Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- db51219f
- Parents:
- c124c985
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-14 16:53:46)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-16 15:58:51)
- Location:
- uspace/lib/posix/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/src/pthread/threads.c
rc124c985 r38d8849 36 36 #include "errno.h" 37 37 #include "posix/stdlib.h" 38 #include "libc/thread.h"38 #include <fibril.h> 39 39 #include "../internal/common.h" 40 40 41 41 pthread_t pthread_self(void) 42 42 { 43 return thread_get_id();43 return (pthread_t) fibril_get_id(); 44 44 } 45 45 -
uspace/lib/posix/src/unistd.c
rc124c985 r38d8849 45 45 46 46 #include "libc/task.h" 47 #include "libc/thread.h"48 47 #include "libc/stats.h" 49 48 #include "libc/malloc.h" … … 70 69 unsigned int sleep(unsigned int seconds) 71 70 { 72 return thread_sleep(seconds); 71 fibril_sleep(seconds); 72 return 0; 73 73 } 74 74
Note:
See TracChangeset
for help on using the changeset viewer.