Results 1 to 6 of 6

Thread: thread question

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2009
    Posts
    78
    Thanks
    21
    Thanked 1 Time in 1 Post

    Default Re: thread question

    I'm having trouble with the translation.
    What does thread-safe or reentrant mean?
    In short words if possible
    Thanks

    opss ... found it http://doc.trolltech.com/4.5/threads...eading-classes
    Last edited by gt.beta2; 13th March 2009 at 19:26.

  2. #2
    Join Date
    Jan 2009
    Posts
    78
    Thanks
    21
    Thanked 1 Time in 1 Post

    Default Re: thread question

    Still about this subject... i've been reading about QtConcurrentRun.
    Would it be possible for me to launch 2 member functions of the initial Ubmsr class in 2 different thread using this?
    Imagine that f1() is broadcasting every 1 second and f2() is listening in other port!? This way i would have access to the GUI objects.

    Does this make sense or showld i forget it?

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: thread question

    In theory you could do that. But my personal opinion is that it's not worth the trouble. If you want to have multiple threads, then use a classical threaded approach and use signals and slots to communicate with the main thread that will manipulate the GUI. The real question is if you should use threads at all.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QTableWidget Design & Thread Safety Question
    By bpetty in forum Qt Programming
    Replies: 4
    Last Post: 28th March 2008, 00:09
  2. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  3. question about socket and threads?
    By oob2 in forum Qt Programming
    Replies: 2
    Last Post: 27th February 2007, 11:42
  4. Problem closing a QMainWindow in Qt4.2
    By ian in forum Qt Programming
    Replies: 11
    Last Post: 17th October 2006, 00:49
  5. simple thread layout question
    By mhoover in forum Qt Programming
    Replies: 1
    Last Post: 12th August 2006, 11:02

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.