Changeset 77fbbd6 in rtems
- Timestamp:
- 07/03/18 09:50:53 (5 years ago)
- Branches:
- 5, master
- Children:
- e755782
- Parents:
- e07b51a7
- git-author:
- Sebastian Huber <sebastian.huber@…> (07/03/18 09:50:53)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (07/05/18 05:10:04)
- Location:
- cpukit
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/configure.ac
re07b51a7 r77fbbd6 115 115 #define _GNU_SOURCE 116 116 #include <pthread.h>]) 117 118 AC_LANG_PUSH(C) 119 AC_MSG_CHECKING([for pthread_mutex_getprioceiling(const pthread_mutex_t *, ...)]) 120 AC_COMPILE_IFELSE([AC_LANG_SOURCE([ 121 #include <pthread.h> 122 int pthread_mutex_getprioceiling(const pthread_mutex_t *__restrict, int *); 123 ])],[ 124 AC_MSG_RESULT([yes]) 125 AC_DEFINE(HAVE_PTHREAD_MUTEX_GETCEILING_CONST, [], [pthread_mutex_getprioceiling(const pthread_mutex_t *, ...)]) 126 ],[ 127 AC_MSG_RESULT([no]) 128 ]) 129 AC_MSG_CHECKING([for pthread_setschedparam(..., const struct sched_param *)]) 130 AC_COMPILE_IFELSE([AC_LANG_SOURCE([ 131 #include <pthread.h> 132 int pthread_setschedparam(pthread_t, int, const struct sched_param *); 133 ])],[ 134 AC_MSG_RESULT([yes]) 135 AC_DEFINE(HAVE_PTHREAD_SETSCHEDPARAM_CONST, [], [pthread_setschedparam(..., const struct sched_param *)]) 136 ],[ 137 AC_MSG_RESULT([no]) 138 ]) 139 AC_LANG_POP(C) 117 140 118 141 # Mandated by POSIX, not declared in some versions of newlib. -
cpukit/include/rtems/posix/pthreadimpl.h
re07b51a7 r77fbbd6 98 98 int _POSIX_Thread_Translate_sched_param( 99 99 int policy, 100 struct sched_param*param,100 const struct sched_param *param, 101 101 Thread_CPU_budget_algorithms *budget_algorithm, 102 102 Thread_CPU_budget_algorithm_callout *budget_callout -
cpukit/posix/src/mutexgetprioceiling.c
re07b51a7 r77fbbd6 27 27 28 28 int pthread_mutex_getprioceiling( 29 pthread_mutex_t *mutex, 30 int *prioceiling 29 #ifdef HAVE_PTHREAD_MUTEX_GETCEILING_CONST 30 const pthread_mutex_t *mutex, 31 #else 32 pthread_mutex_t *mutex, 33 #endif 34 int *prioceiling 31 35 ) 32 36 { … … 39 43 } 40 44 41 the_mutex = _POSIX_Mutex_Get( mutex);45 the_mutex = _POSIX_Mutex_Get( RTEMS_DECONST( pthread_mutex_t *, mutex ) ); 42 46 POSIX_MUTEX_VALIDATE_OBJECT( the_mutex, flags ); 43 47 -
cpukit/posix/src/psxtransschedparam.c
re07b51a7 r77fbbd6 43 43 int _POSIX_Thread_Translate_sched_param( 44 44 int policy, 45 struct sched_param*param,45 const struct sched_param *param, 46 46 Thread_CPU_budget_algorithms *budget_algorithm, 47 47 Thread_CPU_budget_algorithm_callout *budget_callout -
cpukit/posix/src/pthreadsetschedparam.c
re07b51a7 r77fbbd6 34 34 Thread_Control *the_thread, 35 35 int policy, 36 struct sched_param*param,36 const struct sched_param *param, 37 37 Thread_CPU_budget_algorithms budget_algorithm, 38 38 Thread_CPU_budget_algorithm_callout budget_callout, … … 114 114 115 115 int pthread_setschedparam( 116 pthread_t thread, 117 int policy, 118 struct sched_param *param 116 pthread_t thread, 117 int policy, 118 #ifdef HAVE_PTHREAD_SETSCHEDPARAM_CONST 119 const struct sched_param *param 120 #else 121 struct sched_param *param 122 #endif 119 123 ) 120 124 {
Note: See TracChangeset
for help on using the changeset viewer.