[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Ceiling priority in posix mutexes
- Date: Mon, 16 Jul 2007 13:01:27 -0500
- From: joel.sherrill at oarcorp.com (Joel Sherrill)
- Subject: Ceiling priority in posix mutexes
Patricia Lopez-Cueva wrote:
>
> Hi all,
>
>
>
> I am confused with the _CORE_mutex_Seize_interrupt_trylock
> implementation in coremutexseize.c file.
>
> Why if the discipline is Priority Ceiling the function fails if the
> current priority is lower than the ceiling priority? The ceiling
> priority is supposed to be the priority of the highest task that may
> lock the mutex but the only way it works is that the task has a
> priority equal or bigger than priority ceiling.
>
All API task priorities are mapped into SuperCore priorities.
Classic API priorities directly correspond to SuperCore priorities.
POSIX priorities are inverted and there is mapping code in the
POSIX API implementation.
--joel
>
>
>
> Many thanks,
>
> Patricia
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>