Ceiling priority in posix mutexes

Joel Sherrill joel.sherrill at oarcorp.com
Mon Jul 16 18:01:27 UTC 2007


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
>   




More information about the users mailing list