summaryrefslogtreecommitdiffstats
path: root/c/src/exec/rtems/src/tasks.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-03-08 03:51:09 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-03-08 03:51:09 +0000
commitdab057a9b3064e1583f1634f51ea74f9a96a27d5 (patch)
treee008a371a39add4ce00435a534d38b5cd41fbb8a /c/src/exec/rtems/src/tasks.c
parentRemoved getpid from this file and made it its own file. This lets it (diff)
downloadrtems-dab057a9b3064e1583f1634f51ea74f9a96a27d5.tar.bz2
Modified calls to _Thread_Change_priority to take a third argument. The new
argument indicates whether the task is to be placed at the head or tail of its priority fifo when it is lowering its own priority. POSIX normally follows the RTEMS API conventions but GNAT expects that all lowering of a task's priority by the task itself will result in being placed at the head of the priority FIFO. Normally, this would only occur as the result of lose of inherited priority. The RTEMS API always puts tasks at the end of their priority group except upon loss of inherited priority.
Diffstat (limited to '')
-rw-r--r--c/src/exec/rtems/src/tasks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/exec/rtems/src/tasks.c b/c/src/exec/rtems/src/tasks.c
index 2f78b015f4..65c1747ab9 100644
--- a/c/src/exec/rtems/src/tasks.c
+++ b/c/src/exec/rtems/src/tasks.c
@@ -736,7 +736,7 @@ rtems_status_code rtems_task_set_priority(
the_thread->real_priority = new_priority;
if ( the_thread->resource_count == 0 ||
the_thread->current_priority > new_priority )
- _Thread_Change_priority( the_thread, new_priority );
+ _Thread_Change_priority( the_thread, new_priority, FALSE );
}
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;