yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #03912
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
-
How to use a plugin
From: boon chiaweng, 2010-04-01
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-05
-
Re: How to use a plugin
From: Václav Šmilauer, 2010-04-05
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-05
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-07
-
Re: How to use a plugin
From: Václav Šmilauer, 2010-04-08
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-08
-
Re: How to use a plugin
From: Václav Šmilauer, 2010-04-08
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-08
-
Re: How to use a plugin
From: Václav Šmilauer, 2010-04-08
-
Re: How to use a plugin
From: Anton Gladky, 2010-04-08
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-08
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-08
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-09
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-09
-
Re: How to use a plugin
From: Václav Šmilauer, 2010-04-09
-
Re: How to use a plugin
From: boon chiaweng, 2010-04-09