Ignore:
Timestamp:
May 11, 2015, 12:56:49 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
d5423295
Parents:
d8752860
git-author:
Sebastian Huber <sebastian.huber@…> (05/11/15 12:56:49)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/19/15 10:00:48)
Message:

score: Replace _Thread_Delay_ended()

Use _Thread_Timeout() instead. Use pseudo thread queue for nanosleep()
to deal with signals.

Close #2130.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/taskwakeafter.c

    rd8752860 raa05cfbb  
    3131   * disabled on SMP configurations.
    3232   */
    33   Thread_Control *executing;
     33  Thread_Control  *executing;
     34  Per_CPU_Control *cpu_self;
    3435
    35   _Thread_Disable_dispatch();
     36  cpu_self = _Thread_Dispatch_disable();
    3637    executing = _Thread_Executing;
    3738
     
    4041    } else {
    4142      _Thread_Set_state( executing, STATES_DELAYING );
     43      _Thread_Wait_flags_set( executing, THREAD_WAIT_STATE_BLOCKED );
    4244      _Watchdog_Initialize(
    4345        &executing->Timer,
    44         _Thread_Delay_ended,
     46        _Thread_Timeout,
    4547        0,
    4648        executing
     
    4850      _Watchdog_Insert_ticks( &executing->Timer, ticks );
    4951    }
    50   _Thread_Enable_dispatch();
     52  _Thread_Dispatch_enable( cpu_self );
    5153  return RTEMS_SUCCESSFUL;
    5254}
Note: See TracChangeset for help on using the changeset viewer.