Doubt regarding Thread_Control_struct in rtems
sebastian.huber at embedded-brains.de
Fri Jul 17 05:46:12 UTC 2015
On 17/07/15 03:39, Cyrille Artho wrote:
> Note that the lock only protects against direct accesses to the thread
> priority. If other code relies on the fact that the change is still
> current further down, then we may have an "atomicity race" (as it's
> sometimes called) or causality problem (another name for this).
> We are currently trying out ways to avoid any such issues, without
> using too many locks.
Please review the _Thread_Change_priority() function and
Thread_Lock_control carefully. You may have a look at
_Thread_queue_Enqueue_critical() and search for _Thread_Lock_set() for
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel