diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-10-24 07:40:23 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-10-24 10:19:14 +0200 |
commit | c1ce9a20f35e9a3493b4de9827a8395f213c600e (patch) | |
tree | 8d2d9f41a9162c3bc3d018767e6408d942f13808 /cpukit/include/rtems/posix | |
parent | malloctest: Hide NULL pointer from compiler (diff) | |
download | rtems-c1ce9a20f35e9a3493b4de9827a8395f213c600e.tar.bz2 |
posix: Provide get thread attributes by default
Update #2514.
Diffstat (limited to 'cpukit/include/rtems/posix')
-rw-r--r-- | cpukit/include/rtems/posix/pthreadattrimpl.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpukit/include/rtems/posix/pthreadattrimpl.h b/cpukit/include/rtems/posix/pthreadattrimpl.h index 12b8559181..cd4b3528a2 100644 --- a/cpukit/include/rtems/posix/pthreadattrimpl.h +++ b/cpukit/include/rtems/posix/pthreadattrimpl.h @@ -65,13 +65,13 @@ RTEMS_INLINE_ROUTINE void _POSIX_Threads_Initialize_attributes( ); } -#if defined(RTEMS_POSIX_API) RTEMS_INLINE_ROUTINE void _POSIX_Threads_Get_sched_param_sporadic( const Thread_Control *the_thread, const Scheduler_Control *scheduler, struct sched_param *param ) { +#if defined(RTEMS_POSIX_API) const POSIX_API_Control *api; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; @@ -82,8 +82,12 @@ RTEMS_INLINE_ROUTINE void _POSIX_Threads_Get_sched_param_sporadic( param->sched_ss_repl_period = api->Sporadic.sched_ss_repl_period; param->sched_ss_init_budget = api->Sporadic.sched_ss_init_budget; param->sched_ss_max_repl = api->Sporadic.sched_ss_max_repl; -} +#else + (void) the_thread; + (void) scheduler; + (void) param; #endif +} /** @} */ |