Rev 2183 | Rev 2216 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2183 | Rev 2187 | ||
---|---|---|---|
Line 676... | Line 676... | ||
676 | thread_exit(); |
676 | thread_exit(); |
677 | /* Unreachable */ |
677 | /* Unreachable */ |
678 | return 0; |
678 | return 0; |
679 | } |
679 | } |
680 | 680 | ||
- | 681 | /** Syscall for getting TID. |
|
681 | /** @} |
682 | * |
- | 683 | * @return Thread ID. |
|
682 | */ |
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 | } |
|
683 | 693 | ||
- | 694 | /** @} |
|
- | 695 | */ |