diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-14 11:45:22 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-22 14:00:27 +0200 |
commit | 2df7fcff883856cd2fa8a56e9c509a0674bfb01a (patch) | |
tree | c277f34f4cac80f4a629c4438f51b6dd66102625 /cpukit/posix/include/rtems/posix | |
parent | posix: pthread_mutexattr_setprioceiling() (diff) | |
download | rtems-2df7fcff883856cd2fa8a56e9c509a0674bfb01a.tar.bz2 |
posix: _POSIX_Mutex_Default_attributes
Make _POSIX_Mutex_Default_attributes constant and independent of the
scheduler instance. Use INT_MAX to indicate the default ceiling
priority.
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/include/rtems/posix/muteximpl.h | 2 | ||||
-rw-r--r-- | cpukit/posix/include/rtems/posix/priorityimpl.h | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/cpukit/posix/include/rtems/posix/muteximpl.h b/cpukit/posix/include/rtems/posix/muteximpl.h index 4957e207fb..7d19d8c40b 100644 --- a/cpukit/posix/include/rtems/posix/muteximpl.h +++ b/cpukit/posix/include/rtems/posix/muteximpl.h @@ -50,7 +50,7 @@ extern Objects_Information _POSIX_Mutex_Information; /** * The default mutex attributes structure. */ -extern pthread_mutexattr_t _POSIX_Mutex_Default_attributes; +extern const pthread_mutexattr_t _POSIX_Mutex_Default_attributes; RTEMS_INLINE_ROUTINE void _POSIX_Mutex_Acquire_critical( POSIX_Mutex_Control *the_mutex, diff --git a/cpukit/posix/include/rtems/posix/priorityimpl.h b/cpukit/posix/include/rtems/posix/priorityimpl.h index 3835ee90d0..e3f23e748d 100644 --- a/cpukit/posix/include/rtems/posix/priorityimpl.h +++ b/cpukit/posix/include/rtems/posix/priorityimpl.h @@ -60,6 +60,16 @@ extern "C" { #define POSIX_SCHEDULER_MINIMUM_PRIORITY (1) /** + * @brief Gets the maximum POSIX API priority for this scheduler instance. + * + * Such a priority is valid. A scheduler instance may support priority values + * that are not representable as an integer. + * + * @return The maximum POSIX API priority for this scheduler instance. + */ +int _POSIX_Priority_Get_maximum( const Scheduler_Control *scheduler ); + +/** * @brief Check if POSIX priority is valid. * * 1003.1b-1993,2.2.2.80 definition of priority, p. 19 |