Using an XOP function ThreadStart

I am trying to run an XOP function that I wrote using multiple threads. I have followed the example "Parallel Processing - Group-at-a-Time Method" in the manual.

However, the line
<br />
ThreadStart threadGroupID, th, myXOP(arg1, arg2)<br />

won't compile; I get an "Expected function name" error.

I have made the XOP function thread safe and declared it so in its resource file.

Am I not allowed to call XOP functions like this? Do I need to write an ordinary Igor function and put my XOP function inside it?
Quote:
Do I need to write an ordinary Igor function and put my XOP function inside it?


I just tested that and yes, you do need to create a user function for your thread worker function. Your user function can then call your external function.