From 2df7fcff883856cd2fa8a56e9c509a0674bfb01a Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 14 Jun 2016 11:45:22 +0200 Subject: 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. --- cpukit/posix/include/rtems/posix/priorityimpl.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cpukit/posix/include/rtems/posix/priorityimpl.h') 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 @@ -59,6 +59,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. * -- cgit v1.2.3