Results 1 to 2 of 2

Thread: Contineous QThread processing

  1. #1
    Join Date
    Jun 2010
    Posts
    97
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 2 Times in 2 Posts

    Default Contineous QThread processing

    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

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Wiki edits
    15

    Default Re: Contineous QThread processing

    Is there any problem using quit() and start() slots ?

Similar Threads

  1. QThread and QEventLoop - Idle Processing
    By kloffy in forum Newbie
    Replies: 14
    Last Post: 28th April 2011, 11:41
  2. Processing on the File
    By amiref in forum Qt Programming
    Replies: 1
    Last Post: 27th March 2011, 19:06
  3. Image processing
    By NicNac in forum Newbie
    Replies: 25
    Last Post: 2nd November 2008, 10:05
  4. Image Processing using Qt
    By danielperaza in forum Qt Programming
    Replies: 2
    Last Post: 9th March 2008, 18:15
  5. XML processing instruction
    By mattia in forum Newbie
    Replies: 1
    Last Post: 26th February 2008, 11:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.