lock - prototype

Rosière mathieu mathieu.rosiere@lip6.fr
Tue Jul 4 17:14:00 GMT 2006


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




More information about the Newlib mailing list