Changeset dab057a in rtems


Ignore:
Timestamp:
03/08/97 03:51:09 (27 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
f926b34
Parents:
232d6c1c
Message:

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.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/rtems/src/tasks.c

    r232d6c1c rdab057a  
    737737        if ( the_thread->resource_count == 0 ||
    738738             the_thread->current_priority > new_priority )
    739           _Thread_Change_priority( the_thread, new_priority );
     739          _Thread_Change_priority( the_thread, new_priority, FALSE );
    740740      }
    741741      _Thread_Enable_dispatch();
  • cpukit/rtems/src/tasks.c

    r232d6c1c rdab057a  
    737737        if ( the_thread->resource_count == 0 ||
    738738             the_thread->current_priority > new_priority )
    739           _Thread_Change_priority( the_thread, new_priority );
     739          _Thread_Change_priority( the_thread, new_priority, FALSE );
    740740      }
    741741      _Thread_Enable_dispatch();
Note: See TracChangeset for help on using the changeset viewer.