Changeset 3971537 in rtems


Ignore:
Timestamp:
Nov 12, 1999, 9:20:04 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
2979c28
Parents:
037a7b1
Message:

+ Changed validation of the_thread to validation of location.

Files:
4 edited

Legend:

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

    r037a7b1 r3971537  
    2929
    3030  the_thread = _ITRON_Task_Get( tskid, &location );
    31   if (!the_thread)
    32     _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) );
    33 
    34   _Thread_Disable_dispatch();
    35 
    3631  switch ( location ) {
    3732    case OBJECTS_REMOTE:
    3833    case OBJECTS_ERROR:
    39       _Thread_Enable_dispatch(); 
    40       return _ITRON_Task_Clarify_get_id_error( tskid );
     34      _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) );
    4135
    4236    case OBJECTS_LOCAL:
  • c/src/exec/itron/src/rsm_tsk.c

    r037a7b1 r3971537  
    3030
    3131  the_thread = _ITRON_Task_Get( tskid, &location );
    32 
    33   if (!the_thread)
    34     _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid )  );
    35 
    36   if ( the_thread == _Thread_Executing )
    37     _ITRON_return_errorno( E_OBJ );
    38 
    39   if (_States_Is_dormant( the_thread->current_state ))
    40     _ITRON_return_errorno( E_OBJ );
    41    
    4232  switch ( location ) {
    4333    case OBJECTS_REMOTE:
     
    4636
    4737    case OBJECTS_LOCAL:
     38
     39      if ( _Thread_Is_executing( the_thread ) )
     40        _ITRON_return_errorno( E_OBJ );
     41
     42      if ( _States_Is_dormant( the_thread->current_state ))
     43        _ITRON_return_errorno( E_OBJ );
     44   
    4845      _Thread_Resume( the_thread, FALSE );
    4946      _Thread_Enable_dispatch();
  • cpukit/itron/src/rel_wai.c

    r037a7b1 r3971537  
    2929
    3030  the_thread = _ITRON_Task_Get( tskid, &location );
    31   if (!the_thread)
    32     _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) );
    33 
    34   _Thread_Disable_dispatch();
    35 
    3631  switch ( location ) {
    3732    case OBJECTS_REMOTE:
    3833    case OBJECTS_ERROR:
    39       _Thread_Enable_dispatch(); 
    40       return _ITRON_Task_Clarify_get_id_error( tskid );
     34      _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid ) );
    4135
    4236    case OBJECTS_LOCAL:
  • cpukit/itron/src/rsm_tsk.c

    r037a7b1 r3971537  
    3030
    3131  the_thread = _ITRON_Task_Get( tskid, &location );
    32 
    33   if (!the_thread)
    34     _ITRON_return_errorno( _ITRON_Task_Clarify_get_id_error( tskid )  );
    35 
    36   if ( the_thread == _Thread_Executing )
    37     _ITRON_return_errorno( E_OBJ );
    38 
    39   if (_States_Is_dormant( the_thread->current_state ))
    40     _ITRON_return_errorno( E_OBJ );
    41    
    4232  switch ( location ) {
    4333    case OBJECTS_REMOTE:
     
    4636
    4737    case OBJECTS_LOCAL:
     38
     39      if ( _Thread_Is_executing( the_thread ) )
     40        _ITRON_return_errorno( E_OBJ );
     41
     42      if ( _States_Is_dormant( the_thread->current_state ))
     43        _ITRON_return_errorno( E_OBJ );
     44   
    4845      _Thread_Resume( the_thread, FALSE );
    4946      _Thread_Enable_dispatch();
Note: See TracChangeset for help on using the changeset viewer.