Re: [eigen] Help on solving a race condition

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


On 08.06.2012 15:26, Gael Guennebaud wrote:
OK, sorry my naivety, this is well explained here:

http://blogs.msdn.com/b/oldnewthing/archive/2004/03/08/85901.aspx

still looking for an elegant solution though.

On gcc you could use one global static variable and initialize it via a function with __attribute__((constructor)):

http://stackoverflow.com/questions/2053029/how-exactly-does-attribute-constructor-work

Not sure, if there is a similar construct for MSVC (and other compilers).

Christoph




--
----------------------------------------------
Dipl.-Inf. Christoph Hertzberg
Cartesium 0.049
Universität Bremen
Enrique-Schmidt-Straße 5
28359 Bremen

Tel: +49 (421) 218-64252
----------------------------------------------



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/