> Thanks, Vaclav. What I did was I put this in the hpp file: > boost::mutex globalMutex; > > And this inside the function, which uses my variable idA: > boost::mutex::scoped_lock lock(globalMutex);
Ok, but this will only prevent parallel execution of your function; but you said you had parallelism disabled... Could you check by inspecting O.numThreads==1 ? _______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

