Re: [eigen] Help on solving a race condition

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


This solution is openmp specific; what if someone wants to use pthreads or
some other threading system ?
Why not #ifdef on compiler versions to dig out the vendor-specific
thread-local storage extension when OpenMP isn't active:

Couldn't C++11 also be used if available?
http://en.cppreference.com/w/cpp/keyword/thread_local
https://secure.wikimedia.org/wikipedia/en/wiki/C%2B%2B11#Thread-local_storage

Ilja



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