[osg-submissions] atomic operations not pulling windows.h

Robert Osfield robert.osfield at gmail.com
Thu Jun 26 02:57:10 PDT 2008


Thanks for the fixes/changes, now merged and submitted to SVN.

On Thu, Jun 26, 2008 at 7:55 AM, Mathias Fröhlich
<M.Froehlich at science-computing.de> wrote:
>
> Hi Robert,
>
> Attached is a change to that atomic stuff to move the win32, msvc
> implementation of the atomic increment and decrement into a implementation
> file.
> This way inlining and compiler optimization can no longer happen for these
> implementations, but it fixes compilation on win32 msvc targets. I expect
> that this is still faster than with with mutexes.
>
> Also the i386 gcc target gets atomic operations with this patch. By using an
> implementation file we can guarantee that we have the right compiler flags
> available.
>
> Tell me if you want to have something different here.
>
> This time tested on
> win32, msvc 8 32 and 64 bit,
> Suse 10.2, gcc-4.3.1, 64 bit
> Suse 9.0, gcc-4.3.1, 32 bit
> hpux, irix and sunos builds, they at least compile the atomic stuff. They all
> hang currently on other code in osg* these compilers do not like ...
>
> The change is based on rev 8492.
>
> GReetings and thanks for your patience
>
> 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. Florian Geyer,
> Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech
> Vorsitzender des Aufsichtsrats/
> Chairman of the Supervisory Board:
> Prof. Dr. Hanns Ruder
> Sitz/Registered Office: Tuebingen
> Registergericht/Registration Court: Stuttgart
> Registernummer/Commercial Register No.: HRB 382196
>
>
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>


More information about the osg-submissions mailing list