Re: [eigen] Help on solving a race condition

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


> 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

Probably.  I'd probably say to prefer OpenMP, C++11, non-GNU vendor
extensions, GNU extensions in that order.

One other dumb thought-- if the thread local solution requires static
variables, does this one-per-thread overhead also occur
once-per-translation-unit?  That'd be an argument for
Eigen::init_parallel() if the relevant storage could be made global
instead of file static.

- Rhys



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