From 9504919814419e645ca8d9be2535b170f50fa286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 19 Apr 2007 21:30:38 +0000 Subject: [PATCH] Disabled priority boost on semaphore release completely now (after having pacified it quite a bit in the past already); it somehow doesn't work right with how semaphores are used in BeOS/Haiku. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20759 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/sem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/system/kernel/sem.c b/src/system/kernel/sem.c index 79966d94a6..895d00e94b 100644 --- a/src/system/kernel/sem.c +++ b/src/system/kernel/sem.c @@ -766,9 +766,11 @@ release_sem_etc(sem_id id, int32 count, uint32 flags) GRAB_THREAD_LOCK(); while ((thread = thread_dequeue(&releaseQueue)) != NULL) { +#if 0 // temporarily place thread in a run queue with a higher priority to boost it up thread->next_priority = thread->priority >= B_FIRST_REAL_TIME_PRIORITY ? thread->priority : thread->priority + 1; +#endif scheduler_enqueue_in_run_queue(thread); } if ((flags & B_DO_NOT_RESCHEDULE) == 0)