diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-28 06:54:50 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-09-08 09:55:28 +0200 |
commit | b20b736382280fb522d176273645a7e955a97a60 (patch) | |
tree | beb78ee50ef8b6a9257ecf5f8d276af35db11c5a /cpukit/score/src/threadchangepriority.c | |
parent | score: Add scheduler node implementation header (diff) | |
download | rtems-b20b736382280fb522d176273645a7e955a97a60.tar.bz2 |
score: Introduce _Thread_Get_priority()
Avoid direct access to thread internal data fields.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/src/threadchangepriority.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/threadchangepriority.c b/cpukit/score/src/threadchangepriority.c index 97e7950693..3429e1a88d 100644 --- a/cpukit/score/src/threadchangepriority.c +++ b/cpukit/score/src/threadchangepriority.c @@ -120,7 +120,7 @@ static bool _Thread_Raise_priority_filter( ) { return _Thread_Priority_less_than( - the_thread->current_priority, + _Thread_Get_priority( the_thread ), *new_priority ); } @@ -149,7 +149,7 @@ static bool _Thread_Restore_priority_filter( the_thread->priority_restore_hint = false; - return *new_priority != the_thread->current_priority; + return *new_priority != _Thread_Get_priority( the_thread ); } void _Thread_Restore_priority( Thread_Control *the_thread ) |