Hi,

Robert Osfield wrote:
> Hi J.P.
> 
> Must admit I haven't used trylock in the OSG which is possibly why we
> haven't hit upon this issue before.

The same actually happens with lock() on win32 with
USE_CRITICAL_SECTION. I just used trylock() in the example to show the
return value problem.

current svn would happilly complete the following:

for (int i=0;i<10;i++) {
        mymutex.lock(); 
}

without any unlocks. I think it would only block if lock() is actually
called from a different thread, but this is still not the pthread behaviour.

jp

-- 
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
 
CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html 
 
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html 
 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
[EMAIL PROTECTED]


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their 
support.

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to