Changeset c0d602e in rtems


Ignore:
Timestamp:
Nov 21, 2017, 5:19:25 AM (16 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
4d7e4bb
Parents:
c597fb1
git-author:
Sebastian Huber <sebastian.huber@…> (11/21/17 05:19:25)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/21/17 06:42:32)
Message:

posix: _POSIX_Threads_Get_sched_param_sporadic()

Remove api parameter to simplify the calling functions.

Update #2514.

Location:
cpukit/posix
Files:
3 edited

Legend:

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

    rc597fb1 rc0d602e  
    6969RTEMS_INLINE_ROUTINE void _POSIX_Threads_Get_sched_param_sporadic(
    7070  const Thread_Control    *the_thread,
    71   const POSIX_API_Control *api,
    7271  const Scheduler_Control *scheduler,
    7372  struct sched_param      *param
    7473)
    7574{
     75  const POSIX_API_Control *api;
     76
     77  api = the_thread->API_Extensions[ THREAD_API_POSIX ];
    7678  param->sched_ss_low_priority = _POSIX_Priority_From_core(
    7779    scheduler,
  • cpukit/posix/src/pthreadgetattrnp.c

    rc597fb1 rc0d602e  
    3737  Thread_Control               *the_thread;
    3838  ISR_lock_Context              lock_context;
    39   const POSIX_API_Control      *api;
    4039  Thread_CPU_budget_algorithms  budget_algorithm;
    4140  const Scheduler_Control      *scheduler;
     
    5655  _Thread_State_acquire_critical( the_thread, &lock_context );
    5756
    58   api = the_thread->API_Extensions[ THREAD_API_POSIX ];
    59 
    6057  attr->stackaddr = the_thread->Start.Initial_stack.area;
    6158  attr->stacksize = the_thread->Start.Initial_stack.size;
     
    7471  _POSIX_Threads_Get_sched_param_sporadic(
    7572    the_thread,
    76     api,
    7773    scheduler,
    7874    &attr->schedparam
  • cpukit/posix/src/pthreadgetschedparam.c

    rc597fb1 rc0d602e  
    3939  Thread_Control               *the_thread;
    4040  Thread_queue_Context          queue_context;
    41   const POSIX_API_Control      *api;
    4241  Thread_CPU_budget_algorithms  budget_algorithm;
    4342  const Scheduler_Control      *scheduler;
     
    5554  }
    5655
    57   api = the_thread->API_Extensions[ THREAD_API_POSIX ];
    58 
    5956  _Thread_Wait_acquire_critical( the_thread, &queue_context );
    6057
    6158  scheduler = _Thread_Scheduler_get_home( the_thread );
    62   _POSIX_Threads_Get_sched_param_sporadic( the_thread, api, scheduler, param );
     59  _POSIX_Threads_Get_sched_param_sporadic( the_thread, scheduler, param );
    6360  priority = the_thread->Real_priority.priority;
    6461  budget_algorithm = the_thread->budget_algorithm;
Note: See TracChangeset for help on using the changeset viewer.