← Back to team overview

yade-dev team mailing list archive

Re: How to use a plugin

 

> 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

?






Follow ups

References