Hi,

On Tuesday 09 February 2010, Jason Beverage wrote:
> I'm using Visual Studio 2005 SP1 on Windows Vista 64 bit and just
> noticed that OSG isn't picking up that my machine supports atomic
> reference counting, so it's falling back to defining
> _OPENTHREADS_ATOMIC_USE_MUTEX in the OpenThreads/Config.
>
> I saw a thread at
> http://www.mail-archive.com/osg-submissi...@lists.openscenegraph.org/msg022
>38.html mentioning this.  I changed the CheckAtomicOps.cmake to set the
> _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED to true manually, and things
> seem to compile after I apply this change to the intrin.h file on my
> system
> (https://connect.microsoft.com/VisualStudio/feedback/details/262047/compile
>r-error-when-including-windows-h-and-intrin-h-in-the-same-compilation-unit)
>
> Has anyone else run into this and is there a better workaround

I observed that the test sometimes failes here for no real reason.
In this case I have to click away a 'msvcrt*dll not found' message box.
My workaround is to redo configuration as long as it brings up the 'dll not 
found'...

So win32 *has* the functions present! And cl *has* the intrinsics present.
Also gcc-mingw > 4.0 has the atomic builtins present ...
So on windows we should not need to use mutexes ...

One way to fix this would be to replace the intrinsics for win32 with the 
library functions and just code hard in cmake that we this variant on any 
win32.

Greetings

Mathias

-- 
Dr. Mathias Fröhlich, science + computing ag, Software Solutions
Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to