This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
lock - prototype
- From: Rosière mathieu <mathieu dot rosiere at lip6 dot fr>
- To: newlib at sources dot redhat dot com
- Date: Fri, 30 Jun 2006 13:12:29 +0200
- Subject: lock - prototype
Hi,
I have a lot questions on the lock :
* What is the prototype of all functions in <sys/lock.h> ?
* The definition of __LOCK_INIT, it take 2 arguments. The first is
class. Why, it's not used ?
* In the definition of _LOCK_T, it's the type of a lock. A maner to use
a lock is : while (lock == 0);. Or, the lock must be declared as
"volatile".
regards,
Mathieu