This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
POSIX barriers and rwlocks
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: newlib at sources dot redhat dot com
- Date: Thu, 20 Jul 2006 11:03:12 -0500
- Subject: POSIX barriers and rwlocks
Hi,
I am in the process of preparing a patch
to add POSIX barriers and rwlocks to newlib's
pthread.h and sys/types.h.
The glibc headers have them protected with the
ifdef __USE_XOPEN2K. As far as I can tell, this
is always defined since a simple program which
doesn't define this can use barriers.
How should these definitions be wrapper in newlib?
--joel