[osg-users] OpenThreads : which config for win32 VC7 ?
ledocc at gmail.com
Wed Mar 4 10:45:54 PST 2009
_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.
2009/3/4 Fabien Dachicourt <dev at 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,
> osg-users mailing list
> osg-users at lists.openscenegraph.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the osg-users