J
JackC
Hi,
I create my threads like this:
for(int j = 0; j < 5; j++)
{
boost::thread *thr = new boost::thread(worker_func);
threads.add_thread(thr);
}
How would i go about passing a parameter into the worker function? If
possible i would like to pass a structure in.
Thanks for any help,
Jack
I create my threads like this:
for(int j = 0; j < 5; j++)
{
boost::thread *thr = new boost::thread(worker_func);
threads.add_thread(thr);
}
How would i go about passing a parameter into the worker function? If
possible i would like to pass a structure in.
Thanks for any help,
Jack