mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 14:18:09 +08:00
Added check to return passed if task is not suspended.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user