Changeset 3ce7f082 in mainline for kernel/generic/src/proc/thread.c


Ignore:
Timestamp:
2007-04-06T12:53:07Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dd655970
Parents:
c9d20755
Message:

add syscall for getting current thread ID

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/thread.c

    rc9d20755 r3ce7f082  
    679679}
    680680
     681/** Syscall for getting TID.
     682 *
     683 * @return Thread ID.
     684 */
     685unative_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
    681694/** @}
    682695 */
    683 
Note: See TracChangeset for help on using the changeset viewer.