Added check to return passed if task is not suspended.

This commit is contained in:
Jennifer Averett
1999-11-16 22:47:23 +00:00
parent 0fa51b5b0a
commit 4efe2b7a5d
4 changed files with 14 additions and 2 deletions
+3
View File
@@ -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;
}
+4 -1
View File
@@ -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;
}
+3
View File
@@ -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;
}
+4 -1
View File
@@ -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;
}