Changeset d8f3f65b in rtems for c/src/exec/itron/src/del_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/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
Note: See TracChangeset
for help on using the changeset viewer.