Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Manage Threads without using QThreadpool
Forum Updated to NodeBB v4.3 + New Features

Manage Threads without using QThreadpool

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 481 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MokJ
    wrote on last edited by kshegunov
    #1

    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]

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

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

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      3

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved