Changeset 3ce7f082 in mainline
- Timestamp:
- 2007-04-06T12:53:07Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dd655970
- Parents:
- c9d20755
- Location:
- kernel/generic
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/proc/thread.h
rc9d20755 r3ce7f082 251 251 unative_t sys_thread_create(uspace_arg_t *uspace_uarg, char *uspace_name); 252 252 unative_t sys_thread_exit(int uspace_status); 253 unative_t sys_thread_get_id(void); 253 254 254 255 #endif -
kernel/generic/include/syscall/syscall.h
rc9d20755 r3ce7f082 41 41 SYS_THREAD_CREATE, 42 42 SYS_THREAD_EXIT, 43 SYS_THREAD_GET_ID, 43 44 SYS_TASK_GET_ID, 44 45 SYS_FUTEX_SLEEP, -
kernel/generic/src/proc/thread.c
rc9d20755 r3ce7f082 679 679 } 680 680 681 /** Syscall for getting TID. 682 * 683 * @return Thread ID. 684 */ 685 unative_t sys_thread_get_id(void) 686 { 687 /* 688 * No need to acquire lock on THREAD because tid 689 * remains constant for the lifespan of the thread. 690 */ 691 return THREAD->tid; 692 } 693 681 694 /** @} 682 695 */ 683 -
kernel/generic/src/syscall/syscall.c
rc9d20755 r3ce7f082 119 119 (syshandler_t) sys_thread_create, 120 120 (syshandler_t) sys_thread_exit, 121 (syshandler_t) sys_thread_get_id, 121 122 (syshandler_t) sys_task_get_id, 122 123
Note:
See TracChangeset
for help on using the changeset viewer.