bonefish + mmlr:

Don't really resume the undertaker thread after creating it, since at that
point the scheduler has not been started yet. Didn't do any harm, since it was
only the second thread anyway and the idle thread was rescheduled almost
immediately.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29908 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-04-04 21:59:37 +00:00
parent 73b118b633
commit ec29f0842c
+4 -4
View File
@@ -216,7 +216,7 @@ create_thread_struct(struct thread *inthread, const char *name,
} else {
thread = inthread;
}
if (!recycled)
scheduler_on_thread_create(thread);
@@ -259,7 +259,7 @@ create_thread_struct(struct thread *inthread, const char *name,
thread->select_infos = NULL;
thread->post_interrupt_callback = NULL;
thread->post_interrupt_data = NULL;
sprintf(temp, "thread_%ld_retcode_sem", thread->id);
thread->exit.sem = create_sem(0, temp);
if (thread->exit.sem < B_OK)
@@ -277,7 +277,7 @@ create_thread_struct(struct thread *inthread, const char *name,
if (arch_thread_init_thread_struct(thread) < B_OK)
goto err4;
return thread;
err4:
@@ -2107,7 +2107,7 @@ thread_init(kernel_args *args)
B_DISPLAY_PRIORITY, NULL);
if (undertakerThread < 0)
panic("Failed to create undertaker thread!");
resume_thread(undertakerThread);
send_signal_etc(undertakerThread, SIGCONT, B_DO_NOT_RESCHEDULE);
// set up some debugger commands
add_debugger_command_etc("threads", &dump_thread_list, "List all threads",