Results 1 to 5 of 5

Thread: Multiple start() on same QThread Object

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2007
    Posts
    29
    Thanks
    2

    Angry Multiple start() on same QThread Object

    Hi all,
    can I run multiple start() method on same QThread object ?

    Simple example follows:


    Qt Code:
    1. int main(int argc, char *argv[]){
    2. QCoreApplication app(argc,argv);
    3. threadHandler *TH=new threadHandler();
    4. TH.start()
    5. TH.start()
    6.  
    7. return app.exec();
    8. }
    To copy to clipboard, switch view to plain text mode 

    This code executes the two run() methods as two serial executions.
    Is this correct? Do you have experience in this?

    Thanks,
    Michele
    Last edited by wysota; 13th April 2007 at 16:12.

Similar Threads

  1. Object and multiple inheritance for interfaces
    By brcain in forum Qt Programming
    Replies: 8
    Last Post: 29th June 2021, 15:29
  2. Replies: 2
    Last Post: 27th March 2007, 12:09
  3. QThread : run() Vs start()
    By cs_raja in forum Qt Programming
    Replies: 4
    Last Post: 21st November 2006, 10:36
  4. Replies: 4
    Last Post: 10th May 2006, 22:37
  5. Multiple inheritance & Qt
    By dublet in forum Qt Programming
    Replies: 11
    Last Post: 8th March 2006, 08:12

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.