diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-06-01 21:44:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-06-01 21:44:01 +0000 |
commit | 931dd976bc501c0af8e4a7f8c40242185e7ff970 (patch) | |
tree | a742a5e88027361d5e7a7c752ff21c4da6eb8c6c /cpukit/score/src/threadresume.c | |
parent | 2009-06-01 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-931dd976bc501c0af8e4a7f8c40242185e7ff970.tar.bz2 |
2009-06-01 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/include/rtems/score/thread.h, score/src/threadinitialize.c,
score/src/threadreset.c, score/src/threadresume.c,
score/src/threadsuspend.c: Nesting count on thread suspension is only
supported from ITRON API so disable if ITRON is disabled.
Diffstat (limited to 'cpukit/score/src/threadresume.c')
-rw-r--r-- | cpukit/score/src/threadresume.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/cpukit/score/src/threadresume.c b/cpukit/score/src/threadresume.c index 7ca7ee092f..cea8849537 100644 --- a/cpukit/score/src/threadresume.c +++ b/cpukit/score/src/threadresume.c @@ -62,15 +62,17 @@ void _Thread_Resume( _ISR_Disable( level ); - if ( force == true ) - the_thread->suspend_count = 0; - else - the_thread->suspend_count--; - - if ( the_thread->suspend_count > 0 ) { - _ISR_Enable( level ); - return; - } + #if defined(RTEMS_ITRON_API) + if ( force == true ) + the_thread->suspend_count = 0; + else + the_thread->suspend_count--; + + if ( the_thread->suspend_count > 0 ) { + _ISR_Enable( level ); + return; + } + #endif current_state = the_thread->current_state; if ( current_state & STATES_SUSPENDED ) { |