Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. qthreadpool
    Log in to post

    • SOLVED Need Help with getting a slot executed in the correct thread
      General and Desktop • network qtcpsocket qtcpserver server - client qthreadpool • • Curtwagner1984  

      8
      0
      Votes
      8
      Posts
      1487
      Views

      @VRonin said in Need Help with getting a slot executed in the correct thread: the default implementation of QThread::run starts an event loop so if you use the method described in that link everything will work out of the box Indeed it does! Thanks!
    • UNSOLVED Why qThreadpool do not clear its queue
      General and Desktop • memory leak memory managmen qthreadpool • • Ehsun  

      10
      0
      Votes
      10
      Posts
      1983
      Views

      Like I already wrote, it has nothing to do with Qt. Qt is a C++ framework, it doesn't do anything special with respect to memory management. So yes, since the OP wrote that the memory was not freed after the application ended then he needs to elaborate on that.
    • SOLVED QTcpServer handling multiple clients asynchronously
      General and Desktop • qtcpsocket qtcpserver qthreadpool • • Kelvin Royal  

      8
      0
      Votes
      8
      Posts
      4623
      Views

      @kshegunov thank you very much really appreciate you taking your time to explain all this to me. And your are right. as soon as i connected both disconnect signals to the deleteLater() and went down the signals and slots road all the problems vanished. Thank you really. Because i had alot of time to spare i also followed @herlarbee suggestion(even though i watched this videos already) then decided to write a seperate server using QThreadPool approach seen on in the video title "Qt TCP Server design revisited". Then i benchmarked both. This new server after doing some benchmark test using ab tool in apache seems to outperform my previous solutions and handles alot more connections faster. Right now am very happy. When asking this question i just had 200 client limit in my brain but i got solutions that go way beyond that. Thank you guys. Cheers !!!
    • SOLVED QThreadPool and QSqlDatabase
      General and Desktop • sql qthread qsqldatabase qthreadpool • • antreimer  

      5
      1
      Votes
      5
      Posts
      2518
      Views

      I'm using this code on the server. By blocking I simply meant that if one client requested something that took long to process it shouldn't block the other clients. I may upload a working sample of this code to github later.