openturns / otrobopt

Robust optimization module
http://openturns.github.io/otrobopt/master/
GNU Lesser General Public License v3.0
13 stars 6 forks source link

visual c++ compilation OT::OTROBOPT::OTRobOptResourceMap_init and pthread. Dead code ? #40

Closed nitawa closed 1 year ago

nitawa commented 1 year ago

Dear developers, (editing)

I am trying to compile otrobopt on windows and experience an issue with one class OT::OTROBOPT::OTRobOptResourceMap_init This class implemented in MeasureEvaluation.cxx source file which does not compile because of pthreads dependency which was obviously removed in version 1.21 of Openturns but was present in sources of Openturns 1.20.

Do you know which version of pthreads I need to use to get it compiled, since in version 1.20 pthreads was shipped in openturns, but it seems to have been removed in version 1.21.

Thanks for your valuable feeback.

nitawa commented 1 year ago

updating my question (had an issue with the grepwin tool...)

jschueller commented 1 year ago

our code is incorrect, we need to use std::mutex now

nitawa commented 1 year ago

do you have a patch by chance, that I can apply here? thanks

jschueller commented 1 year ago

see #41