Changeset 5a909149 in rtems


Ignore:
Timestamp:
May 7, 1999, 5:09:20 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ddd22e5
Parents:
16775a5
Message:

Made all calls to _Thread_Yield_processor consistent in how they are
wrapped by calls to _Thread_Enable_dispatch and _Thread_Disable_dispatch.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/src/time.c

    r16775a5 r5a909149  
    315315
    316316  if ( !ticks ) {
    317     _Thread_Yield_processor();
    318     _Thread_Dispatch();
     317    _Thread_Disable_dispatch();
     318      _Thread_Yield_processor();
     319    _Thread_Enable_dispatch();
    319320    if ( rmtp ) {
    320321       rmtp->tv_sec = 0;
  • c/src/exec/rtems/src/tasks.c

    r16775a5 r5a909149  
    10561056)
    10571057{
    1058   if ( ticks == 0 ) {
    1059     _Thread_Yield_processor();
    1060     _Thread_Dispatch();
    1061   } else {
    1062     _Thread_Disable_dispatch();
     1058  _Thread_Disable_dispatch();
     1059    if ( ticks == 0 ) {
     1060      _Thread_Yield_processor();
     1061    } else {
    10631062      _Thread_Set_state( _Thread_Executing, STATES_DELAYING );
    10641063      _Watchdog_Initialize(
     
    10691068      );
    10701069      _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks );
    1071     _Thread_Enable_dispatch();
    1072   }
     1070    }
     1071  _Thread_Enable_dispatch();
    10731072  return RTEMS_SUCCESSFUL;
    10741073}
  • cpukit/posix/src/time.c

    r16775a5 r5a909149  
    315315
    316316  if ( !ticks ) {
    317     _Thread_Yield_processor();
    318     _Thread_Dispatch();
     317    _Thread_Disable_dispatch();
     318      _Thread_Yield_processor();
     319    _Thread_Enable_dispatch();
    319320    if ( rmtp ) {
    320321       rmtp->tv_sec = 0;
  • cpukit/rtems/src/tasks.c

    r16775a5 r5a909149  
    10561056)
    10571057{
    1058   if ( ticks == 0 ) {
    1059     _Thread_Yield_processor();
    1060     _Thread_Dispatch();
    1061   } else {
    1062     _Thread_Disable_dispatch();
     1058  _Thread_Disable_dispatch();
     1059    if ( ticks == 0 ) {
     1060      _Thread_Yield_processor();
     1061    } else {
    10631062      _Thread_Set_state( _Thread_Executing, STATES_DELAYING );
    10641063      _Watchdog_Initialize(
     
    10691068      );
    10701069      _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks );
    1071     _Thread_Enable_dispatch();
    1072   }
     1070    }
     1071  _Thread_Enable_dispatch();
    10731072  return RTEMS_SUCCESSFUL;
    10741073}
Note: See TracChangeset for help on using the changeset viewer.