5
Last change
on this file since fce900b5 was
300f6a48,
checked in by Sebastian Huber <sebastian.huber@…>, on 06/22/16 at 15:09:23
|
score: Rework thread priority management
Add priority nodes which contribute to the overall thread priority.
The actual priority of a thread is now an aggregation of priority nodes.
The thread priority aggregation for the home scheduler instance of a
thread consists of at least one priority node, which is normally the
real priority of the thread. The locking protocols (e.g. priority
ceiling and priority inheritance), rate-monotonic period objects and the
POSIX sporadic server add, change and remove priority nodes.
A thread changes its priority now immediately, e.g. priority changes are
not deferred until the thread releases its last resource.
Replace the _Thread_Change_priority() function with
- _Thread_Priority_perform_actions(),
- _Thread_Priority_add(),
- _Thread_Priority_remove(),
- _Thread_Priority_change(), and
- _Thread_Priority_update().
Update #2412.
Update #2556.
|
-
Property mode set to
100644
|
File size:
709 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Scheduler Default Node Initialization Operation |
---|
5 | * |
---|
6 | * @ingroup ScoreScheduler |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * COPYRIGHT (c) 2011. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.org/license/LICENSE. |
---|
16 | */ |
---|
17 | |
---|
18 | #if HAVE_CONFIG_H |
---|
19 | #include "config.h" |
---|
20 | #endif |
---|
21 | |
---|
22 | #include <rtems/score/schedulerimpl.h> |
---|
23 | |
---|
24 | void _Scheduler_default_Node_initialize( |
---|
25 | const Scheduler_Control *scheduler, |
---|
26 | Scheduler_Node *node, |
---|
27 | Thread_Control *the_thread, |
---|
28 | Priority_Control priority |
---|
29 | ) |
---|
30 | { |
---|
31 | _Scheduler_Node_do_initialize( scheduler, node, the_thread, priority ); |
---|
32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.