diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-15 06:59:57 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-22 14:00:28 +0200 |
commit | eec08efc9048111f47f42142c30a92683bf6756c (patch) | |
tree | cad083e49ab757b47487f8489ed48c9204b65c38 /cpukit/score/include/rtems | |
parent | posix: Delete POSIX_API_Control::schedparam (diff) | |
download | rtems-eec08efc9048111f47f42142c30a92683bf6756c.tar.bz2 |
posix: Rework sporadic server scheduling policy
Instead of lowering the priority in case the initial budget is consumed
raise the priority for each new period. Restore the normal priority
once the initial budget is consumed. This makes it later easier to
combine the high priority phase with temporary priority boosts (e.g. via
priority ceiling and inheritance).
Use the thread lock to protect the POSIX thread attributes instead of
the thread state lock. This makes it easier to change the thread
priority and keep the POSIX attributes consistent.
Fixes a false positive use of uninitialized variable warning.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/include/rtems/score/thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h index 7c5f0793c3..cde31b48c1 100644 --- a/cpukit/score/include/rtems/score/thread.h +++ b/cpukit/score/include/rtems/score/thread.h @@ -657,6 +657,7 @@ typedef struct { * provide their own lock. * * The thread lock protects the following thread variables + * - POSIX_API_Control::Attributes, * - Thread_Control::current_priority, * - Thread_Control::Wait::queue, and * - Thread_Control::Wait::operations. @@ -710,7 +711,6 @@ struct _Thread_Control { * The lock of this thread queue is used for various purposes. It protects * the following fields * - * - POSIX_API_Control::Attributes, * - RTEMS_API_Control::Signal, * - Thread_Control::budget_algorithm, * - Thread_Control::budget_callout, |