From 06d016b380722dd65bc99563f9b222fd4531351f Mon Sep 17 00:00:00 2001 From: beveloper Date: Sat, 26 Oct 2002 12:58:52 +0000 Subject: [PATCH] renamed thread_entry git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1678 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/thread.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kernel/core/thread.c b/src/kernel/core/thread.c index b03f8583ff..3106c35b68 100644 --- a/src/kernel/core/thread.c +++ b/src/kernel/core/thread.c @@ -74,7 +74,7 @@ static struct thread_queue run_q[(B_MAX_PRIORITY / 2) + 1] = { { NULL, NULL }, } #endif /* NEW_SCHEDULER */ struct thread_queue dead_q; -static void thread_entry(void); +static void thread_kthread_entry(void); static void thread_kthread_exit(void); //static void deliver_signal(struct thread *t, int signal); @@ -414,7 +414,7 @@ _create_thread(const char *name, team_id pid, addr entry, void *args, int priori if (kernel) { // this sets up an initial kthread stack that runs the entry - arch_thread_initialize_kthread_stack(t, &_create_kernel_thread_kentry, &thread_entry, &thread_kthread_exit); + arch_thread_initialize_kthread_stack(t, &_create_kernel_thread_kentry, &thread_kthread_entry, &thread_kthread_exit); } else { // create user stack // XXX make this better. For now just keep trying to create a stack @@ -438,7 +438,7 @@ _create_thread(const char *name, team_id pid, addr entry, void *args, int priori // copy the user entry over to the args field in the thread struct // the function this will call will immediately switch the thread into // user space. - arch_thread_initialize_kthread_stack(t, &_create_user_thread_kentry, &thread_entry, &thread_kthread_exit); + arch_thread_initialize_kthread_stack(t, &_create_user_thread_kentry, &thread_kthread_entry, &thread_kthread_exit); } t->state = B_THREAD_SUSPENDED; @@ -894,7 +894,7 @@ snooze(bigtime_t timeout) // this function gets run by a new thread before anything else static void -thread_entry(void) +thread_kthread_entry(void) { // simulates the thread spinlock release that would occur if the thread had been // rescheded from. The resched didn't happen because the thread is new.