[osg-submissions] atomic operations not pulling windows.h
Mathias Fröhlich
M.Froehlich at science-computing.de
Wed Jun 25 23:55:47 PDT 2008
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no-windows-h.tar.bz2
Type: application/x-tbz
Size: 7234 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080626/0cfe8b98/attachment.bin>
More information about the osg-submissions
mailing list