Changeset c1ce9a2 in rtems


Ignore:
Timestamp:
Oct 24, 2018, 5:40:23 AM (6 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
4b801ac
Parents:
522d4b91
git-author:
Sebastian Huber <sebastian.huber@…> (10/24/18 05:40:23)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/24/18 08:19:14)
Message:

posix: Provide get thread attributes by default

Update #2514.

Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/Makefile.am

    r522d4b91 rc1ce9a2  
    545545librtemscpu_a_SOURCES += posix/src/pspinunlock.c
    546546librtemscpu_a_SOURCES += posix/src/psxpriorityisvalid.c
     547librtemscpu_a_SOURCES += posix/src/psxtransschedparam.c
    547548librtemscpu_a_SOURCES += posix/src/pthreadattrdefault.c
    548549librtemscpu_a_SOURCES += posix/src/pthreadattrdestroy.c
     
    569570librtemscpu_a_SOURCES += posix/src/pthreadattrsetstacksize.c
    570571librtemscpu_a_SOURCES += posix/src/pthreadgetaffinitynp.c
     572librtemscpu_a_SOURCES += posix/src/pthreadgetattrnp.c
    571573librtemscpu_a_SOURCES += posix/src/pthreadgetnamenp.c
     574librtemscpu_a_SOURCES += posix/src/pthreadgetschedparam.c
    572575librtemscpu_a_SOURCES += posix/src/pthreadonce.c
    573576librtemscpu_a_SOURCES += posix/src/pthreadsetaffinitynp.c
     
    10461049librtemscpu_a_SOURCES += posix/src/psxtimercreate.c
    10471050librtemscpu_a_SOURCES += posix/src/psxtimerdelete.c
    1048 librtemscpu_a_SOURCES += posix/src/psxtransschedparam.c
    10491051librtemscpu_a_SOURCES += posix/src/pthreadatfork.c
    10501052librtemscpu_a_SOURCES += posix/src/pthread.c
     
    10541056librtemscpu_a_SOURCES += posix/src/pthreadequal.c
    10551057librtemscpu_a_SOURCES += posix/src/pthreadexit.c
    1056 librtemscpu_a_SOURCES += posix/src/pthreadgetattrnp.c
    10571058librtemscpu_a_SOURCES += posix/src/pthreadgetcpuclockid.c
    1058 librtemscpu_a_SOURCES += posix/src/pthreadgetschedparam.c
    10591059librtemscpu_a_SOURCES += posix/src/pthreadinitthreads.c
    10601060librtemscpu_a_SOURCES += posix/src/pthreadjoin.c
  • cpukit/include/rtems/posix/pthreadattrimpl.h

    r522d4b91 rc1ce9a2  
    6666}
    6767
    68 #if defined(RTEMS_POSIX_API)
    6968RTEMS_INLINE_ROUTINE void _POSIX_Threads_Get_sched_param_sporadic(
    7069  const Thread_Control    *the_thread,
     
    7372)
    7473{
     74#if defined(RTEMS_POSIX_API)
    7575  const POSIX_API_Control *api;
    7676
     
    8383  param->sched_ss_init_budget = api->Sporadic.sched_ss_init_budget;
    8484  param->sched_ss_max_repl = api->Sporadic.sched_ss_max_repl;
     85#else
     86  (void) the_thread;
     87  (void) scheduler;
     88  (void) param;
     89#endif
    8590}
    86 #endif
    8791
    8892/** @} */
  • cpukit/posix/src/psxtransschedparam.c

    r522d4b91 rc1ce9a2  
    3131    case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE:
    3232      return SCHED_OTHER;
     33#if defined(RTEMS_POSIX_API)
    3334    case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE:
    3435      return SCHED_RR;
     36#endif
    3537    case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
    3638      return SCHED_SPORADIC;
     
    6163  }
    6264
     65#if defined(RTEMS_POSIX_API)
    6366  if ( policy == SCHED_RR ) {
    6467    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE;
    6568    return 0;
    6669  }
     70#endif
    6771
    6872  if ( policy == SCHED_SPORADIC ) {
Note: See TracChangeset for help on using the changeset viewer.