On 03/07/2014 05:19 PM, Joel Sherrill wrote:
This currently uses a pthread mutex.  That implies when
I turn it on for all configurations, pthread mutexes will have
to be enabled.

Would it be correct and acceptable to rewrite this to use
CPU atomic locks?

No, this doesn't work.  You must block if you own an SMP lock.

We need an internal mutex here, similar to the allocator mutex.

--
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.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

_______________________________________________
rtems-devel mailing list
rtems-devel@rtems.org
http://www.rtems.org/mailman/listinfo/rtems-devel

Reply via email to