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/threadsuspend.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/threadsuspend.c')
-rw-r--r-- | cpukit/score/src/threadsuspend.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/score/src/threadsuspend.c b/cpukit/score/src/threadsuspend.c index 1e2ec87e07..3005cf7801 100644 --- a/cpukit/score/src/threadsuspend.c +++ b/cpukit/score/src/threadsuspend.c @@ -56,7 +56,9 @@ void _Thread_Suspend( ready = the_thread->ready; _ISR_Disable( level ); - the_thread->suspend_count++; + #if defined(RTEMS_ITRON_API) + the_thread->suspend_count++; + #endif if ( !_States_Is_ready( the_thread->current_state ) ) { the_thread->current_state = _States_Set( STATES_SUSPENDED, the_thread->current_state ); |