diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-05-28 13:37:54 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-06-03 08:15:16 +0200 |
commit | 6c7caa1a9e1587dcc069aa811e9086c220b03ea8 (patch) | |
tree | 5470465893d892e0f0caffd3033e7b6efe68c508 /cpukit/posix/src/pthread.c | |
parent | score: Add Resource Handler (diff) | |
download | rtems-6c7caa1a9e1587dcc069aa811e9086c220b03ea8.tar.bz2 |
score: Add and use _Thread_Owns_resources()
Diffstat (limited to 'cpukit/posix/src/pthread.c')
-rw-r--r-- | cpukit/posix/src/pthread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c index ab197f3a51..6b1e55549b 100644 --- a/cpukit/posix/src/pthread.c +++ b/cpukit/posix/src/pthread.c @@ -115,7 +115,7 @@ void _POSIX_Threads_Sporadic_budget_TSR( printk( "TSR %d %d %d\n", the_thread->resource_count, the_thread->current_priority, new_priority ); #endif - if ( the_thread->resource_count == 0 ) { + if ( !_Thread_Owns_resources( the_thread ) ) { /* * If this would make them less important, then do not change it. */ @@ -161,7 +161,7 @@ void _POSIX_Threads_Sporadic_budget_callout( printk( "callout %d %d %d\n", the_thread->resource_count, the_thread->current_priority, new_priority ); #endif - if ( the_thread->resource_count == 0 ) { + if ( !_Thread_Owns_resources( the_thread ) ) { /* * Make sure we are actually lowering it. If they have lowered it * to logically lower than sched_ss_low_priority, then we do not want to |