Thanks Paul, I've now merged your changes and submitted to OpenThreads CVS.

Windows users please test, especially multi-threaded usage such as
database pager etc.

Thanks,
Robert.

On 8/13/06, Paul Martz <[EMAIL PROTECTED]> wrote:
Boris -- Thanks for the history and input.

Robert -- Per your instructions, posted here so that others can try it out.

Attached is my much simpler rewrite of OpenThreads::Mutex, using a
CRITICAL_SECTION, which has worked well on my day since before I hired on.
However, it depends on the underlying OS for scheduling, while it looks like
the current version of Mutex is a little more pro-active about which thread
gets scheduled.

My changes are wrapped with the CPP macro USE_CRITICAL_SECTION, which I've
defined in Win32MutexPrivateData.h. If you comment out the definition, you
get the current version, so you can do a heads to heads comparison.

It'll be interesting to see if this makes a difference.
   -Paul


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/



_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to