Move the handling of still running threads into scheduler_enqueue_in_run_queue().
This should be in line with all uses of scheduler_enqueue_in_run_queue() and simplifies a few places where it is used. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23738 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2363,7 +2363,6 @@ _user_debug_thread(thread_id threadID)
|
||||
switch (thread->state) {
|
||||
case B_THREAD_SUSPENDED:
|
||||
// thread suspended: wake it up
|
||||
thread->state = thread->next_state = B_THREAD_READY;
|
||||
scheduler_enqueue_in_run_queue(thread);
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user