summaryrefslogtreecommitdiffstats
path: root/c/src/exec/itron/src/frsm_tsk.c
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>1999-11-16 22:47:23 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>1999-11-16 22:47:23 +0000
commit4efe2b7a5d1ed06098b6c0c82b38a8d8027e5b50 (patch)
tree18f70823e57c968dc61b5e4184b202f5d58a4339 /c/src/exec/itron/src/frsm_tsk.c
parentAdded code to catch the error of suspend count exceding the counter value. (diff)
downloadrtems-4efe2b7a5d1ed06098b6c0c82b38a8d8027e5b50.tar.bz2
Added check to return passed if task is not suspended.
Diffstat (limited to 'c/src/exec/itron/src/frsm_tsk.c')
-rw-r--r--c/src/exec/itron/src/frsm_tsk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/c/src/exec/itron/src/frsm_tsk.c b/c/src/exec/itron/src/frsm_tsk.c
index 5ca9e2da4f..743d05771f 100644
--- a/c/src/exec/itron/src/frsm_tsk.c
+++ b/c/src/exec/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;
}