From 7e80cf009622e5ade1f87703c0ad3e9a17cd4a80 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Fri, 25 Jan 2008 17:37:20 +0000 Subject: [PATCH] Missed this setting of thread state which is now unnecessary. Otherwise nothing in the kernel seems to mess with the state outside of the scheduler so checking for B_THREAD_RUNNING there should be fine. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23740 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/sem.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/system/kernel/sem.cpp b/src/system/kernel/sem.cpp index 67681df6e4..4466446a0a 100644 --- a/src/system/kernel/sem.cpp +++ b/src/system/kernel/sem.cpp @@ -630,7 +630,6 @@ remove_thread_from_sem(struct thread *thread, struct sem_entry *sem, return B_ENTRY_NOT_FOUND; sem->u.used.count += thread->sem.acquire_count; - thread->state = thread->next_state = B_THREAD_READY; thread->sem.acquire_status = acquireStatus; thread_enqueue(thread, queue);