summaryrefslogtreecommitdiffstats
path: root/c/src/exec
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
parent0fa51b5b0a8bfa523974a903f2daa45e797097b5 (diff)
downloadrtems-4efe2b7a5d1ed06098b6c0c82b38a8d8027e5b50.tar.bz2
Added check to return passed if task is not suspended.
Diffstat (limited to 'c/src/exec')
-rw-r--r--c/src/exec/itron/src/frsm_tsk.c3
-rw-r--r--c/src/exec/itron/src/rsm_tsk.c5
2 files changed, 7 insertions, 1 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;
}
diff --git a/c/src/exec/itron/src/rsm_tsk.c b/c/src/exec/itron/src/rsm_tsk.c
index a9bdf57d6c..6b5237029b 100644
--- a/c/src/exec/itron/src/rsm_tsk.c
+++ b/c/src/exec/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;
}