This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Races in ARM atomicity.h functions?
- From: Alon Ziv <alonz at emblazesemi dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Wed, 19 May 2004 15:29:55 +0300
- Subject: Races in ARM atomicity.h functions?
- Organization: Emblaze Semiconductor Ltd.
Hi all,
I had a look at the atomicity functions for ARM (sysdeps/arm/atomicity.h), and
all of them look to have subtle races in a multi-threaded environment.
At least the most widely used of those (compare_and_swap) seems to be fixable,
but I'd like to be certain I understand these functions' usage before I touch
them...
Can anyone enlighten me?
Alon Ziv <alonz@emblazesemi.com>
SW Team Leader / Project Manager
Emblaze Semiconductor Ltd. <http://www.emblazesemi.com/>
Phone: +972 9 7699527
Fax: +972 9 7699556