Is there a data race problem while acquiring a mutex with priority inheritance protocol

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Jul 24 07:14:53 UTC 2015



On 24/07/15 04:41, Saurabh Gadia wrote:
> #if defined(RTEMS_SMP)
> RTEMS_INLINE_ROUTINE void _Thread_Lock_restore_default(
>   Thread_Control *the_thread
> )
> {
>   _Atomic_Fence( ATOMIC_ORDER_RELEASE );
>
>   _Thread_Lock_set_unprotected( the_thread, &the_thread->Lock.Default );
> }
>
> what does this atomic fence does when we set Lock.current=Default in 
> threadimpl.h?

https://git.rtems.org/rtems/commit/?id=9c539101909b46a801e5a319204600fedc1954dc

-- 
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 mailing list