yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #03909
Re: How to use a plugin
> I used global mutex. Now it works.
Hi boon, congratulations!
Sorry I didn't reply earlier. Can you briefly describe your solution? I
had similar problems, that passing pointer to function somehow made
omp_get_thread_num() return garbage (at least it seemed to).
Note that if you want to run multi-threaded (for performance), you can
store those globals in array (initialized to size omp_get_max_threads())
and retrieve per-thread pointer by
yourStaticArray[omp_get_thread_num()].
Cheers, vaclav
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