ARM/NTPL uses generic atomics.h

Thomas Rauscher trauscher at loytec.com
Thu Sep 23 07:20:15 UTC 2010


Hi,

compiling ARM/NPTL I found that several functions, e.g. sem_post and sem_wait
use the generic atomic.h which is not really atomic on ARM. The code seems to
work at first, but under heavier load, POSIX semaphores behave faulty.

Moving libpthread/nptl/sysdeps/unix/sysv/linux/arm/bits/atomic.h to 
libc/sysdeps/linux/arm/bits/atomic.h fixed the problem for me.

-- 
Thomas Rauscher


More information about the uClibc mailing list