Changeset 02878626 in rtems


Ignore:
Timestamp:
Oct 17, 2017, 2:15:31 PM (17 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
27cfe7c
Parents:
d85c94c0
git-author:
Sebastian Huber <sebastian.huber@…> (10/17/17 14:15:31)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/24/17 07:29:59)
Message:

score: Add _Thread_Add_timeout_ticks()

Replace _Thread_Timer_insert_monotonic() with
_Thread_Add_timeout_ticks().

Update #3117.
Update #3182.

Location:
cpukit
Files:
4 edited

Legend:

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

    rd85c94c0 r02878626  
    8282
    8383  if ( ticks ) {
    84     _Thread_Timer_insert_monotonic(
    85       executing,
    86       cpu_self,
    87       _Thread_Timeout,
    88       ticks
    89     );
     84    _Thread_Add_timeout_ticks( executing, cpu_self, ticks );
    9085  }
    9186
  • cpukit/rtems/src/taskwakeafter.c

    rd85c94c0 r02878626  
    4242      _Thread_Set_state( executing, STATES_WAITING_FOR_TIME );
    4343      _Thread_Wait_flags_set( executing, THREAD_WAIT_STATE_BLOCKED );
    44       _Thread_Timer_insert_monotonic(
    45         executing,
    46         cpu_self,
    47         _Thread_Timeout,
    48         ticks
    49       );
     44      _Thread_Add_timeout_ticks( executing, cpu_self, ticks );
    5045    }
    5146  _Thread_Dispatch_direct( cpu_self );
  • cpukit/score/include/rtems/score/threadimpl.h

    rd85c94c0 r02878626  
    18581858}
    18591859
    1860 RTEMS_INLINE_ROUTINE void _Thread_Timer_insert_monotonic(
    1861   Thread_Control                 *the_thread,
    1862   Per_CPU_Control                *cpu,
    1863   Watchdog_Service_routine_entry  routine,
    1864   Watchdog_Interval               ticks
     1860RTEMS_INLINE_ROUTINE void _Thread_Add_timeout_ticks(
     1861  Thread_Control    *the_thread,
     1862  Per_CPU_Control   *cpu,
     1863  Watchdog_Interval  ticks
    18651864)
    18661865{
     
    18711870  the_thread->Timer.header =
    18721871    &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_MONOTONIC ];
    1873   the_thread->Timer.Watchdog.routine = routine;
     1872  the_thread->Timer.Watchdog.routine = _Thread_Timeout;
    18741873  _Watchdog_Per_CPU_insert_ticks( &the_thread->Timer.Watchdog, cpu, ticks );
    18751874
  • cpukit/score/src/threadqenqueue.c

    rd85c94c0 r02878626  
    386386      /* A relative timeout of 0 is a special case indefinite (no) timeout */
    387387      if ( queue_context->timeout != 0 ) {
    388         _Thread_Timer_insert_monotonic(
     388        _Thread_Add_timeout_ticks(
    389389          the_thread,
    390390          cpu_self,
    391           _Thread_Timeout,
    392391          (Watchdog_Interval) queue_context->timeout
    393392        );
Note: See TracChangeset for help on using the changeset viewer.