Changeset 037a7b1 in rtems


Ignore:
Timestamp:
Nov 12, 1999, 9:18:36 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
3971537
Parents:
0c5ab522
Message:

+ Moved error checks to before the disable dispatch where possible.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/itron/src/ref_tsk.c

    r0c5ab522 r037a7b1  
    3131  Priority_Control         core_priority; 
    3232
     33  if (!pk_rtsk)
     34    return E_PAR;
     35
    3336  the_thread = _ITRON_Task_Get( tskid, &location );
    34   if (!the_thread)
     37  if ( location != OBJECTS_LOCAL)
    3538    _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) );
    36 
    37   if (!pk_rtsk)
    38     _ITRON_return_errorno( E_PAR );
    3939
    4040  /*
     
    7777    pk_rtsk->tskstat = TTS_WAI;
    7878
    79   return E_OK;           /* XXX - Should never get here */
     79  _ITRON_return_errorno( E_OK );
    8080}
    8181
  • cpukit/itron/src/ref_tsk.c

    r0c5ab522 r037a7b1  
    3131  Priority_Control         core_priority; 
    3232
     33  if (!pk_rtsk)
     34    return E_PAR;
     35
    3336  the_thread = _ITRON_Task_Get( tskid, &location );
    34   if (!the_thread)
     37  if ( location != OBJECTS_LOCAL)
    3538    _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) );
    36 
    37   if (!pk_rtsk)
    38     _ITRON_return_errorno( E_PAR );
    3939
    4040  /*
     
    7777    pk_rtsk->tskstat = TTS_WAI;
    7878
    79   return E_OK;           /* XXX - Should never get here */
     79  _ITRON_return_errorno( E_OK );
    8080}
    8181
Note: See TracChangeset for help on using the changeset viewer.