I want to create threads using(CreatingChildThreads):
https://www.sidefx.com/docs/hdk/_h_d_k__multi_threading.html#HDK_MultiThreading_CreatingChildThreads [www.sidefx.com]
This code executes the doTask function on each thread.
threads(i)->startThread(&doTask, data)
How can I alter the doTask function with my own set of inputs?
For example (tried to do this but it did not work):
static void * doTask(void *data, vector<double> myArray, int idx) { myArray[idx] += 1.0; return NULL; // always return NULL } threads(i)->startThread(&doTask, data, myArray, idx)