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/threadinitialize.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/threadinitialize.c')
-rw-r--r-- | cpukit/score/src/threadinitialize.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c index 3bad6c92bc..2af727af7c 100644 --- a/cpukit/score/src/threadinitialize.c +++ b/cpukit/score/src/threadinitialize.c @@ -196,7 +196,9 @@ bool _Thread_Initialize( the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; the_thread->resource_count = 0; - the_thread->suspend_count = 0; + #if defined(RTEMS_ITRON_API) + the_thread->suspend_count = 0; + #endif the_thread->real_priority = priority; the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); |