Changeset d8f3f65b in rtems for c/src/exec/itron/src/frsm_tsk.c
- Timestamp:
- 11/12/99 21:23:34 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 8ed3125d
- Parents:
- 2979c28
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/itron/src/frsm_tsk.c
r2979c28 rd8f3f65b 30 30 31 31 the_thread = _ITRON_Task_Get( tskid, &location ); 32 if (!the_thread)33 _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) );34 35 if ( the_thread == _Thread_Executing )36 _ITRON_return_errorno( E_OBJ );37 38 if (_States_Is_dormant( the_thread->current_state ))39 _ITRON_return_errorno( E_OBJ );40 41 32 switch ( location ) { 42 33 case OBJECTS_REMOTE: … … 45 36 46 37 case OBJECTS_LOCAL: 38 if ( _Thread_Is_executing( the_thread ) ) 39 _ITRON_return_errorno( E_OBJ ); 40 41 if (_States_Is_dormant( the_thread->current_state )) 42 _ITRON_return_errorno( E_OBJ ); 43 47 44 _Thread_Resume( the_thread, TRUE ); 48 _Thread_Enable_dispatch(); 49 return E_OK; 45 _ITRON_return_errorno( E_OK ); 50 46 } 51 47 52 return E_OBJ;/* XXX - Should never get here */48 _ITRON_return_errorno( E_OBJ ); /* XXX - Should never get here */ 53 49 54 50 }
Note: See TracChangeset
for help on using the changeset viewer.