summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadqenqueuepriority.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2006-07-11 21:05:12 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2006-07-11 21:05:12 +0000
commit83df49f697d770276c16af18884e2c4aeb393ab8 (patch)
treea8ad7983ebe4162b4768ab46edc7dd28df93fea0 /cpukit/score/src/threadqenqueuepriority.c
parentfixed system.h: only include ATA/IDE driver, when BSP supports an ide interface (diff)
downloadrtems-83df49f697d770276c16af18884e2c4aeb393ab8.tar.bz2
2006-07-11 Joel Sherrill <joel@OARcorp.com>
PR 1124/rtems * score/include/rtems/score/threadq.h, score/src/coremutexseize.c, score/src/coremutexsurrender.c, score/src/threadqenqueue.c, score/src/threadqenqueuefifo.c, score/src/threadqenqueuepriority.c: The placement of the changing a thread's priority when using priority ceiling should be on the successful transfer of the mutex -- not when the thread tries to acquire. Plus the lack of a dispatch disable point lead to the potential for a thread timing out and already having inherited the ceiling priority.
Diffstat (limited to 'cpukit/score/src/threadqenqueuepriority.c')
-rw-r--r--cpukit/score/src/threadqenqueuepriority.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/cpukit/score/src/threadqenqueuepriority.c b/cpukit/score/src/threadqenqueuepriority.c
index b5154b8c76..5c49a4c6d8 100644
--- a/cpukit/score/src/threadqenqueuepriority.c
+++ b/cpukit/score/src/threadqenqueuepriority.c
@@ -29,13 +29,11 @@
*
* _Thread_queue_Enqueue_priority
*
- * This routine blocks a thread, places it on a thread, and optionally
- * starts a timeout timer.
+ * This routine places a blocked thread on a priority thread queue.
*
* Input parameters:
* the_thread_queue - pointer to threadq
* thread - thread to insert
- * timeout - timeout interval in ticks
*
* Output parameters: NONE
*
@@ -46,8 +44,7 @@
void _Thread_queue_Enqueue_priority(
Thread_queue_Control *the_thread_queue,
- Thread_Control *the_thread,
- Watchdog_Interval timeout
+ Thread_Control *the_thread
)
{
Priority_Control search_priority;