Do not just overwrite the thread state when suspending a thread since this easily causes problems on SMP systems (triggers the panic in the scheduler).

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23839 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2008-02-03 16:18:19 +00:00
parent f87d72d788
commit 2362422c38

View File

@ -902,7 +902,7 @@ make_thread_suspended(int argc, char **argv)
if (thread->id != id)
continue;
thread->state = thread->next_state = B_THREAD_SUSPENDED;
thread->next_state = B_THREAD_SUSPENDED;
kprintf("thread %ld suspended\n", id);
break;
}