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