Re: [Interest] Is this snippet correct- concurrent run

2012-10-12 Thread Sujan Dasmahapatra
Please check this snippet if this is correct 1. QFuture Th; 2. std::vector > Threads; 3. int z=0; 4. while(zactiveThreadCount() < QThreadPool ::globalInstance()->maxThreadCount()) { 6. Th = QtConcurrent::run(this,&UNRSTParser::ProcessZLayer,z); 7. Threads.push_back(Th); 8.

Re: [Interest] Is this snippet correct- concurrent run

2012-10-12 Thread Christian Gagneraud
Hi Sujan, Copy/pasting code in email body can lead to strange formating depending on the reader's email client (Have a look below). You better off using online copy/pasting tools like http://pastebin.com (free service). This way, anyone can read your code snippet, and with good syntax highlight