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:
@@ -902,7 +902,7 @@ make_thread_suspended(int argc, char **argv)
|
|||||||
if (thread->id != id)
|
if (thread->id != id)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
thread->state = thread->next_state = B_THREAD_SUSPENDED;
|
thread->next_state = B_THREAD_SUSPENDED;
|
||||||
kprintf("thread %ld suspended\n", id);
|
kprintf("thread %ld suspended\n", id);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user