diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 1999-11-16 22:47:23 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 1999-11-16 22:47:23 +0000 |
commit | 4efe2b7a5d1ed06098b6c0c82b38a8d8027e5b50 (patch) | |
tree | 18f70823e57c968dc61b5e4184b202f5d58a4339 /cpukit/itron/src | |
parent | Added code to catch the error of suspend count exceding the counter value. (diff) | |
download | rtems-4efe2b7a5d1ed06098b6c0c82b38a8d8027e5b50.tar.bz2 |
Added check to return passed if task is not suspended.
Diffstat (limited to 'cpukit/itron/src')
-rw-r--r-- | cpukit/itron/src/frsm_tsk.c | 3 | ||||
-rw-r--r-- | cpukit/itron/src/rsm_tsk.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/itron/src/frsm_tsk.c b/cpukit/itron/src/frsm_tsk.c index 5ca9e2da4f..743d05771f 100644 --- a/cpukit/itron/src/frsm_tsk.c +++ b/cpukit/itron/src/frsm_tsk.c @@ -41,6 +41,9 @@ ER frsm_tsk( if (_States_Is_dormant( the_thread->current_state )) _ITRON_return_errorno( E_OBJ ); + if ( ! _States_Is_suspended(the_thread->current_state) ) + _ITRON_return_errorno( E_OK ); + _Thread_Resume( the_thread, TRUE ); break; } diff --git a/cpukit/itron/src/rsm_tsk.c b/cpukit/itron/src/rsm_tsk.c index a9bdf57d6c..6b5237029b 100644 --- a/cpukit/itron/src/rsm_tsk.c +++ b/cpukit/itron/src/rsm_tsk.c @@ -41,7 +41,10 @@ ER rsm_tsk( if ( _States_Is_dormant( the_thread->current_state )) _ITRON_return_errorno( E_OBJ ); - + + if ( ! _States_Is_suspended(the_thread->current_state) ) + _ITRON_return_errorno( E_OK ); + _Thread_Resume( the_thread, FALSE ); break; } |