ohh. We acquire lock over the_thread!! Sorry for that.
_Thread_Lock_release( lock, &lock_context );
_Scheduler_Acquire( the_thread, &lock_context );
if ( the_thread->priority_generation == my_generation ) {
and generation is only important if its value changed after release and
befo
hi,
I was going through the code in _thread_change_priority(){..}
(threadchangepriority.c) and had doubt. below is the code snippet.
_Atomic_Fence( ATOMIC_ORDER_ACQ_REL );
/*
* Do not bother recomputing all the priority related information if
* we are not REALLY changing priority.