Changeset d8f3f65b in rtems
- 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
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/itron/src/del_tsk.c
r2979c28 rd8f3f65b 31 31 32 32 the_thread = _ITRON_Task_Get( tskid, &location ); 33 34 if (!the_thread)35 _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) );36 37 if ( the_thread == _Thread_Executing )38 _ITRON_return_errorno( E_OBJ );39 40 if ( !_States_Is_dormant( the_thread->current_state ) )41 _ITRON_return_errorno( E_OBJ );42 43 33 switch ( location ) { 44 34 case OBJECTS_REMOTE: 45 35 case OBJECTS_ERROR: 46 36 _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) ); 37 break; 47 38 48 39 case OBJECTS_LOCAL: 40 41 if ( _Thread_Is_executing( the_thread ) ) 42 _ITRON_return_errorno( E_OBJ ); 43 44 if ( !_States_Is_dormant( the_thread->current_state ) ) 45 _ITRON_return_errorno( E_OBJ ); 46 49 47 result = _ITRON_Delete_task( the_thread ); 48 break; 50 49 } 51 50 52 _Thread_Enable_dispatch(); 53 return E_OK; 51 _ITRON_return_errorno( E_OK ); 54 52 } 55 53 -
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 } -
c/src/exec/itron/src/sus_tsk.c
r2979c28 rd8f3f65b 34 34 35 35 the_thread = _ITRON_Task_Get( tskid, &location ); 36 if (!the_thread)37 _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) );38 39 if ( the_thread == _Thread_Executing )40 _ITRON_return_errorno( E_OBJ );41 42 36 switch ( location ) { 43 37 case OBJECTS_REMOTE: … … 46 40 47 41 case OBJECTS_LOCAL: 42 43 if ( _Thread_Is_executing( the_thread ) ) 44 _ITRON_return_errorno( E_OBJ ); 45 48 46 _Thread_Suspend( the_thread ); 49 _Thread_Enable_dispatch(); 50 return E_OK; 47 _ITRON_return_errorno( E_OK ); 51 48 } 52 49 53 return E_OBJ; /* XXX - Should never get here */50 _ITRON_return_errorno( E_OBJ ); 54 51 } 55 52 -
c/src/exec/itron/src/ter_tsk.c
r2979c28 rd8f3f65b 31 31 the_thread = _ITRON_Task_Get( tskid, &location ); 32 32 33 if ( !the_thread)33 if ( location != OBJECTS_LOCAL ) 34 34 _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) ); 35 35 36 if ( the_thread == _Thread_Executing)36 if ( _Thread_Is_executing( the_thread ) ) 37 37 _ITRON_return_errorno( E_OBJ ); 38 38 … … 43 43 _Thread_Set_state( the_thread, STATES_DORMANT ); 44 44 45 _Thread_Enable_dispatch(); 46 return E_OK; 45 _ITRON_return_errorno( E_OK ); 47 46 } 48 47 -
cpukit/itron/src/del_tsk.c
r2979c28 rd8f3f65b 31 31 32 32 the_thread = _ITRON_Task_Get( tskid, &location ); 33 34 if (!the_thread)35 _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) );36 37 if ( the_thread == _Thread_Executing )38 _ITRON_return_errorno( E_OBJ );39 40 if ( !_States_Is_dormant( the_thread->current_state ) )41 _ITRON_return_errorno( E_OBJ );42 43 33 switch ( location ) { 44 34 case OBJECTS_REMOTE: 45 35 case OBJECTS_ERROR: 46 36 _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) ); 37 break; 47 38 48 39 case OBJECTS_LOCAL: 40 41 if ( _Thread_Is_executing( the_thread ) ) 42 _ITRON_return_errorno( E_OBJ ); 43 44 if ( !_States_Is_dormant( the_thread->current_state ) ) 45 _ITRON_return_errorno( E_OBJ ); 46 49 47 result = _ITRON_Delete_task( the_thread ); 48 break; 50 49 } 51 50 52 _Thread_Enable_dispatch(); 53 return E_OK; 51 _ITRON_return_errorno( E_OK ); 54 52 } 55 53 -
cpukit/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 } -
cpukit/itron/src/sus_tsk.c
r2979c28 rd8f3f65b 34 34 35 35 the_thread = _ITRON_Task_Get( tskid, &location ); 36 if (!the_thread)37 _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) );38 39 if ( the_thread == _Thread_Executing )40 _ITRON_return_errorno( E_OBJ );41 42 36 switch ( location ) { 43 37 case OBJECTS_REMOTE: … … 46 40 47 41 case OBJECTS_LOCAL: 42 43 if ( _Thread_Is_executing( the_thread ) ) 44 _ITRON_return_errorno( E_OBJ ); 45 48 46 _Thread_Suspend( the_thread ); 49 _Thread_Enable_dispatch(); 50 return E_OK; 47 _ITRON_return_errorno( E_OK ); 51 48 } 52 49 53 return E_OBJ; /* XXX - Should never get here */50 _ITRON_return_errorno( E_OBJ ); 54 51 } 55 52 -
cpukit/itron/src/ter_tsk.c
r2979c28 rd8f3f65b 31 31 the_thread = _ITRON_Task_Get( tskid, &location ); 32 32 33 if ( !the_thread)33 if ( location != OBJECTS_LOCAL ) 34 34 _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) ); 35 35 36 if ( the_thread == _Thread_Executing)36 if ( _Thread_Is_executing( the_thread ) ) 37 37 _ITRON_return_errorno( E_OBJ ); 38 38 … … 43 43 _Thread_Set_state( the_thread, STATES_DORMANT ); 44 44 45 _Thread_Enable_dispatch(); 46 return E_OK; 45 _ITRON_return_errorno( E_OK ); 47 46 } 48 47
Note: See TracChangeset
for help on using the changeset viewer.