Re: [osg-users] Different behavior between Linux and Windows when using OpenThreads::Mutex

2009-02-04 Thread J.P. Delport
Hi, see also this thread here: http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/14294/ I've run into this as well. Also have a look at OpenThreads/Barrier. jp Laurence Muller wrote: Hi, It seems that there is a difference in behavior when using the OpenThreads::Mutex class

Re: [osg-users] Different behavior between Linux and Windows when using OpenThreads::Mutex

2009-02-04 Thread Robert Osfield
Hi Luarance, I believe the difference is down to pthreads not allowing two locks on the same mutex from a single thread, while the windows equivilant allows this - this means the standard Windows mutex is re-entrant, whereas the pthread one isn't. To get the same behaviour as windows under linux

[osg-users] Different behavior between Linux and Windows when using OpenThreads::Mutex

2009-02-04 Thread Laurence Muller
Hi, It seems that there is a difference in behavior when using the OpenThreads::Mutex class in Linux and Windows. For our (crossplatform) application it is required to synchronize data between two different threads. In order to prevent a race condition, we used the OpenThreads mutex lock (Op