POSIX Once Implementation
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Mar 7 18:23:50 UTC 2014
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.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