Yes, the
if (test)
lock()
if (test)
construct is very important (although I thought I saw a bug about
JVM implementations getting this wrong).
Anyone doing threads programming should read Andrew Birrell's 1989 tutorial.
http://gatekeeper.dec.com/pub/DEC/SRC/research-reports/abstracts/src-rr-035.html
FYI, Birrell invented RPC.
/r$
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]