Changeset 2979c28 in rtems
- Timestamp:
- 11/12/99 21:21:09 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- d8f3f65b
- Parents:
- 3971537
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/itron/src/sta_tsk.c
r3971537 r2979c28 32 32 33 33 the_thread = _ITRON_Task_Get( tskid, &location ); 34 if (!the_thread)35 _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) );36 37 if ( !_States_Is_dormant( the_thread->current_state ) )38 _ITRON_return_errorno( E_OBJ );39 40 34 switch ( location ) { 41 35 case OBJECTS_REMOTE: … … 44 38 45 39 case OBJECTS_LOCAL: 40 41 if ( !_States_Is_dormant( the_thread->current_state ) ) 42 _ITRON_return_errorno( E_OBJ ); 43 46 44 status = _Thread_Start( 47 45 the_thread, … … 52 50 ); 53 51 54 if ( !status ) 55 _ITRON_return_errorno( E_OBJ ); 52 /* 53 * This error can not happen entry_point is checked in create. 54 if ( !status ) 55 _ITRON_return_errorno( E_OBJ ); 56 */ 56 57 57 _Thread_Enable_dispatch(); 58 return E_OK; 58 _ITRON_return_errorno( E_OK ); 59 59 } 60 60 61 return E_OBJ; /* unreached - only to remove warnings */61 _ITRON_return_errorno( E_OBJ ); /* unreached - only to remove warnings */ 62 62 } 63 63 -
cpukit/itron/src/sta_tsk.c
r3971537 r2979c28 32 32 33 33 the_thread = _ITRON_Task_Get( tskid, &location ); 34 if (!the_thread)35 _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) );36 37 if ( !_States_Is_dormant( the_thread->current_state ) )38 _ITRON_return_errorno( E_OBJ );39 40 34 switch ( location ) { 41 35 case OBJECTS_REMOTE: … … 44 38 45 39 case OBJECTS_LOCAL: 40 41 if ( !_States_Is_dormant( the_thread->current_state ) ) 42 _ITRON_return_errorno( E_OBJ ); 43 46 44 status = _Thread_Start( 47 45 the_thread, … … 52 50 ); 53 51 54 if ( !status ) 55 _ITRON_return_errorno( E_OBJ ); 52 /* 53 * This error can not happen entry_point is checked in create. 54 if ( !status ) 55 _ITRON_return_errorno( E_OBJ ); 56 */ 56 57 57 _Thread_Enable_dispatch(); 58 return E_OK; 58 _ITRON_return_errorno( E_OK ); 59 59 } 60 60 61 return E_OBJ; /* unreached - only to remove warnings */61 _ITRON_return_errorno( E_OBJ ); /* unreached - only to remove warnings */ 62 62 } 63 63
Note: See TracChangeset
for help on using the changeset viewer.