[PATCH] score: Get current priority with proper locking

Sebastian Huber sebastian.huber at embedded-brains.de
Wed May 26 12:14:13 UTC 2021

On 26/05/2021 14:10, Sebastian Huber wrote:
> The current priority is a 64-bit integer which should be read under
> protection of the right ISR lock to avoid potential issues with
> non-atomic loads on 32-bit architectures.

Please ignore this patch. It doesn't work. There is a strange priority 
boosting mechanism at work in _Thread_Cancel() and thus also 

embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:

More information about the devel mailing list