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/posix/src/killinfo.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/posix/src/killinfo.c')
-rw-r--r-- | cpukit/posix/src/killinfo.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/posix/src/killinfo.c b/cpukit/posix/src/killinfo.c index 7ab9beb78a..013334ce79 100644 --- a/cpukit/posix/src/killinfo.c +++ b/cpukit/posix/src/killinfo.c @@ -214,7 +214,7 @@ int killinfo( printk("\n 0x%08x/0x%08x %d/%d 0x%08x 1", the_thread->Object.id, ((interested) ? interested->Object.id : 0), - the_thread->current_priority, interested_priority, + the_thread->Priority_node.current_priority, interested_priority, the_thread->current_state ); #endif @@ -223,7 +223,7 @@ int killinfo( * If this thread is of lower priority than the interested thread, * go on to the next thread. */ - if ( the_thread->current_priority > interested_priority ) + if ( the_thread->Priority_node.current_priority > interested_priority ) continue; DEBUG_STEP("2"); @@ -250,9 +250,9 @@ int killinfo( * so we never have to worry about deferencing a NULL * interested thread. */ - if ( the_thread->current_priority < interested_priority ) { + if ( the_thread->Priority_node.current_priority < interested_priority ) { interested = the_thread; - interested_priority = the_thread->current_priority; + interested_priority = the_thread->Priority_node.current_priority; continue; } DEBUG_STEP("4"); @@ -270,7 +270,7 @@ int killinfo( DEBUG_STEP("5"); if ( _States_Is_ready( the_thread->current_state ) ) { interested = the_thread; - interested_priority = the_thread->current_priority; + interested_priority = the_thread->Priority_node.current_priority; continue; } @@ -281,7 +281,7 @@ int killinfo( if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) { DEBUG_STEP("8"); interested = the_thread; - interested_priority = the_thread->current_priority; + interested_priority = the_thread->Priority_node.current_priority; continue; } } |