Thank you for the help; I implemented that in my code and it works great. However, after looking through the documentation I believe the QtConcurrent::map would be better since it allows control over the timing, which I need.
I have a vector "idxvec" that has n elements, going from 0 to n. I'd like to implement the function like this:
vector<qint32> idxvec(nregions);
for (idx = 0; idx < nregions; idx++)
idxvec[idx] = idx;
QtConcurrent::map(idxvec,this,&CoreData::runCorrelation);
vector<qint32> idxvec(nregions);
for (idx = 0; idx < nregions; idx++)
idxvec[idx] = idx;
QtConcurrent::map(idxvec,this,&CoreData::runCorrelation);
To copy to clipboard, switch view to plain text mode
However this doesn't compile. I apologize for all these questions, the documentation is really sparse about this 
Thanks!
Bookmarks