diff options
author | Gedare Bloom <gedare@rtems.org> | 2017-12-21 11:49:30 -0500 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2018-03-23 11:33:59 -0400 |
commit | 78b867e26dac3266763f275c1f438da912f33a6e (patch) | |
tree | 6a6bcac4a0a7f3fa6fd9ab7a9c499ca00ff69f2c /cpukit/score/src/coremutex.c | |
parent | sptests: Add spmutex01 to build (diff) | |
download | rtems-78b867e26dac3266763f275c1f438da912f33a6e.tar.bz2 |
score: replace current and real priority with priority node
Encapsulate the current_priority and real_priority fields of
the thread control block with a Thread_Priority_node struct.
Propagate modifications throughout the tree where the two
fields are directly accessed.
Updates #3359.
Diffstat (limited to 'cpukit/score/src/coremutex.c')
-rw-r--r-- | cpukit/score/src/coremutex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/coremutex.c b/cpukit/score/src/coremutex.c index 261e18e80f..6540afd8af 100644 --- a/cpukit/score/src/coremutex.c +++ b/cpukit/score/src/coremutex.c @@ -71,12 +71,12 @@ CORE_mutex_Status _CORE_mutex_Initialize( Priority_Control ceiling = the_mutex->Attributes.priority_ceiling; if ( is_priority_ceiling && - _Thread_Executing->current_priority < ceiling ) + _Thread_Executing->Priority_node.current_priority < ceiling ) return CORE_MUTEX_STATUS_CEILING_VIOLATED; #ifdef __RTEMS_STRICT_ORDER_MUTEX__ _Chain_Prepend_unprotected( &_Thread_Executing->lock_mutex, &the_mutex->queue.lock_queue ); - the_mutex->queue.priority_before = _Thread_Executing->current_priority; + the_mutex->queue.priority_before = _Thread_Executing->Priority_node.current_priority; #endif _Thread_Executing->resource_count++; |