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/posix/src/pthreadsetschedprio.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/posix/src/pthreadsetschedprio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/pthreadsetschedprio.c b/cpukit/posix/src/pthreadsetschedprio.c index fd77b6894a..fac86d2609 100644 --- a/cpukit/posix/src/pthreadsetschedprio.c +++ b/cpukit/posix/src/pthreadsetschedprio.c @@ -49,7 +49,7 @@ static bool _POSIX_Set_sched_prio_filter( *new_priority_p = new_priority; - current_priority = the_thread->current_priority; + current_priority = _Thread_Get_priority( the_thread ); the_thread->real_priority = new_priority; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; |