<div dir="ltr"><div>Hi,<br></div>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 <b>thread->current_priority. </b>As it is updated by thread while restoring its priority and while some other thread trying to promote for nested_mutex behavior.<br><div><br clear="all"><div><div><div class="gmail_signature"><div dir="ltr">Thanks,<div><br></div><div>Saurabh Gadia</div></div></div></div>
</div></div></div>