PDA

View Full Version : Contineous QThread processing



mvbhavsar
22nd July 2011, 17:22
Hi,

I have requirement where I have to use threads to enhance processing speed. Basically my program lists physical files from a directory and also loads configuration data from database into memory. Then listed files are picked up by each thread using QMutex locking mechanism. Then within each run method these files are opened and processed with the help of database data which is stored in QMaps. Upon processing these files are moved to archive directory. Once listed files are consumed by threads I want my program to half for 1 minute and again list new files from same directory and enable all threads again to process newer files. I am able to do upto the state before halt. I need help how to halt and enable all threads again.


Thanks

Manish

Santosh Reddy
22nd July 2011, 18:49
Is there any problem using quit() and start() slots ?