Hi Fabien
_OPENTHREADS_ATOMIC_USE_MUTEX is the default configuration. It use a mutex
to lock osg::Referenced instance for multi threaded access.
_OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED is only use if compilator support
it. When you run cmake to configure the project, a test is done to determine
if _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED can be used.
It seem that VC7 didn't support it.
HTH
David Callu
2009/3/4 Fabien Dachicourt d...@spaceyes.fr
Hi All,
I noticed that on Win32 VC7, (OSG 2.8) Cmake auto shift OpenThread atomic
config to _OPENTHREADS_ATOMIC_USE_MUTEX
In which case can we use_OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED, is it
possible on VC7 Win32 ?
Is it risky to use the config _OPENTHREADS_ATOMIC_USE_MUTEX ?
Thanks in advance,
--
Fabien
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org