Doubt regarding Thread_Control_struct in rtems
Saurabh Gadia
gadia at usc.edu
Wed Jul 15 23:49:26 UTC 2015
Hi,
Is there any explicit locking to avoid data races condition on members of
Thread_Control_struct in rtems? As for mutex we have ticket_lock over its
wait_queue in SMP architecture which can serve as explicit locking in
mutex. For thread I feel data race condition may happen while setting
*thread->current_priority.
*As it is updated by thread while restoring its priority and while some
other thread trying to promote for nested_mutex behavior.
Thanks,
Saurabh Gadia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20150715/f0e682e9/attachment-0001.html>
More information about the devel
mailing list