replaced syscall with find_thread(NULL) to obtain current thread id

currently, find_thread(NULL) also uses a syscall, but in the future,
this will be implemented as an efficient inline lookup in calling
thread's local storage


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2017 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Daniel Reinhold
2002-11-19 20:57:55 +00:00
parent d55c9bd082
commit ca60e89ab7
+2 -4
View File
@@ -18,9 +18,7 @@
int
raise(int sig)
{
thread_id tid = sys_get_current_thread_id();
return sys_send_signal(tid, sig);
{
return sys_send_signal(find_thread(NULL), sig);
}