Ignore:
Timestamp:
Jun 15, 2016, 6:50:29 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
d6467102
Parents:
d07f582
git-author:
Sebastian Huber <sebastian.huber@…> (06/15/16 06:50:29)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/15/16 06:55:18)
Message:

posix: Use _POSIX_Threads_Sporadic_timer_insert()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/include/rtems/posix/pthreadimpl.h

    rd07f582 r5d65d0dd  
    2323#include <rtems/posix/config.h>
    2424#include <rtems/posix/threadsup.h>
     25#include <rtems/score/assert.h>
    2526#include <rtems/score/objectimpl.h>
     27#include <rtems/score/timespec.h>
    2628#include <rtems/score/threadimpl.h>
    27 #include <rtems/score/assert.h>
     29#include <rtems/score/watchdogimpl.h>
    2830
    2931#ifdef __cplusplus
     
    5153 */
    5254extern pthread_attr_t _POSIX_Threads_Default_attributes;
     55
     56RTEMS_INLINE_ROUTINE void _POSIX_Threads_Sporadic_timer_insert(
     57  POSIX_API_Control *api
     58)
     59{
     60  _Watchdog_Per_CPU_insert_relative(
     61    &api->Sporadic_timer,
     62    _Per_CPU_Get(),
     63    _Timespec_To_ticks( &api->Attributes.schedparam.sched_ss_repl_period )
     64  );
     65}
    5366
    5467/**
Note: See TracChangeset for help on using the changeset viewer.