Hi Robert,

I did some further investigations: I added in ReaderWriterCURL::readFile an 
atomic counter and stopped in the debugger whenever the atomic counter reaches 
2 (means 2 threads are running at the same time an instance of 
ReaderWriterCURL::readFile).

The debugger showed clearly that there are two threads running but 
OpenThreads::Thread::CurrentThread() always returned the same pointer to 
Thread. Therefore, getEasyCurl() does not work correctly.

PS: I do not know if OpenThreads is broken on macOS?! I compiled OpenThreads 
with


Code:
#define _OPENTHREADS_ATOMIC_USE_MUTEX 1




but this should actually not matter.

Cheers,
Hartwig

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72602#72602





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to