I used global mutex. Now it works. Cheers,
boon ---------------------------------------- > From: [email protected] > To: [email protected] > Date: Fri, 9 Apr 2010 21:47:21 +0800 > Subject: Re: [Yade-dev] How to use a plugin > > > I declared everything as static but still couldn't solve it.. > > > Boon > > ---------------------------------------- >> From: [email protected] >> To: [email protected] >> Date: Fri, 9 Apr 2010 06:21:20 +0800 >> Subject: Re: [Yade-dev] How to use a plugin >> >> >> Hi, >> >> I bumped into the problem that my variable declared is not consistent, >> although I ran my simulation with -j1 or OMP_NUM_THREADS=1. >> >> What I have been doing is this: I declared a variable, NOT under any class: >> 'int IdA;'. My yade IgFunc sets 'IdA = interaction->getId1();'. And, from my >> plugin library's function, I use getScene() to assess state->pos of that >> body using IdA. But, when I did a check, IdA turns out to be different from >> interaction->getId1()! >> >> How could I solve this? >> >> >> Yours, >> >> Boon >> >> ---------------------------------------- >>> From: [email protected] >>> To: [email protected] >>> Date: Thu, 8 Apr 2010 20:27:51 +0800 >>> Subject: Re: [Yade-dev] How to use a plugin >>> >>> >>> Thank you, Vaclav! Now my script loads ok, but I have not tested running it. >>> >>> Anton: It'll be my pleasure. >>> >>> >>> Yours, >>> >>> Boon >>> >>> _________________________________________________________________ >>> Hotmail: Powerful Free email with security by Microsoft. >>> https://signup.live.com/signup.aspx?id=60969 >>> _______________________________________________ >>> Mailing list: https://launchpad.net/~yade-dev >>> Post to : [email protected] >>> Unsubscribe : https://launchpad.net/~yade-dev >>> More help : https://help.launchpad.net/ListHelp >> >> _________________________________________________________________ >> Hotmail: Trusted email with powerful SPAM protection. >> https://signup.live.com/signup.aspx?id=60969 >> _______________________________________________ >> Mailing list: https://launchpad.net/~yade-dev >> Post to : [email protected] >> Unsubscribe : https://launchpad.net/~yade-dev >> More help : https://help.launchpad.net/ListHelp > > _________________________________________________________________ > Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. > https://signup.live.com/signup.aspx?id=60969 > _______________________________________________ > Mailing list: https://launchpad.net/~yade-dev > Post to : [email protected] > Unsubscribe : https://launchpad.net/~yade-dev > More help : https://help.launchpad.net/ListHelp _________________________________________________________________ Hotmail: Trusted email with Microsoft’s powerful SPAM protection. https://signup.live.com/signup.aspx?id=60969 _______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

