Page 1 of 1

ThreadLocal

Posted: Thu Oct 11, 2018 9:09 pm
by sam
Guys,

Did something happen recently with ThreadLocal? I can't find ThreadLocal.h in the latest release of simbody (https://github.com/simbody/simbody.git ). I ask because I try to compile molmodel (which has not changed in forever) I get the below error. Where exactly is ThreadLocal.h?

thanks

sam

Re: ThreadLocal

Posted: Thu Oct 11, 2018 9:11 pm
by sam
sam@pe1:~/svn/molmodel/build$ make
[ 3%] Building CXX object sharedTarget/CMakeFiles/SimTKmolmodel.dir/__/src/DuMMForceFieldSubsystemRep.cpp.o
/home/sam/svn/molmodel/src/DuMMForceFieldSubsystemRep.cpp:1759:5: error: ThreadLocal does not name a type; did you mean thread_local?
ThreadLocal Real localEnergy
thread_local
/home/sam/svn/molmodel/src/DuMMForceFieldSubsystemRep.cpp:1759:5: error: ThreadLocal does not name a type; did you mean thread_local?
ThreadLocal< Array_<Real, DuMM::NonbondAtomIndex> > localVdwScale;
^~~~~~~~~~~
thread_local