[Xenomai] [PATCH] copperplate/mercury: introduce weak function to get OS max thread priority

Philippe Gerum rpm at xenomai.org
Sat Dec 3 18:18:27 CET 2016


On 11/30/2016 08:30 AM, Ronny Meeus wrote:
> This patch introduces a weak function in the mercury copperplate code
> that allows to put an upper limit on the priority used by the created thread
> objects.
> 
> Before this patch the complete OS scheduler's FIFO range was used and it was
> not possible to restrict it. Restricting it can be useful in case other
> activities (typically platform related things) need to get a higher priority
> than the application threads.
> 
> The example below shows what needs to be implemented in the application to
> restrict the range.

This looks weird. Any reason not to fix up the priority of your
application threads?

-- 
Philippe.



More information about the Xenomai mailing list