Qt World Summit: Submit your Presentation

Manage Threads without using QThreadpool

  • hello everyone
    Is there a way to manage threads without using QThreadpool?

    I have a server class and a worker class, I'm doing all the connecting client stuff in server class. Now when readyRead() gets called ,I'm creating an object of the worker class and doing moveToThread();
    So is there a way I can keep my threads running and whenever new worker object is created , move it to that thread ?

    [Don't proliferate threads unnecessarily! More information in the original thread ~kshegunov]

  • Lifetime Qt Champion

    Why should it not be possible? Just don't stop your thread after the work is done.

Log in to reply