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. QThreadPool based on QMap(msecs) instead of QQueue
Forum Updated to NodeBB v4.3 + New Features

QThreadPool based on QMap(msecs) instead of QQueue

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 192 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.
  • C Offline
    C Offline
    coucougael94
    wrote on last edited by
    #1

    Hello,
    To manage in parallel two identic QFiles, I wants to link one QThreadPool to one other remote QThreadPool.

    For an architecture using such coordination, I imagine to use timestamp+msecs to coordinate the two internal QThreadPool's QQueued stack (so in my case I would rather prefer a QMap<quint64 timestampmsecs, QThreadPoolThread> instead of Qt core QQueued<QThreadPoolThread> stack).

    If such architecture is not theorically wrong, it means that i need to code my own version of some Qt core files.

    Is that architecture initially wrong ? Or can I create my QMap-time based QThreadPool system instead of QQueue ?

    (It's a casual development, it could be archaic)
    Thank you.

    jsulmJ 1 Reply Last reply
    0
    • C coucougael94

      Hello,
      To manage in parallel two identic QFiles, I wants to link one QThreadPool to one other remote QThreadPool.

      For an architecture using such coordination, I imagine to use timestamp+msecs to coordinate the two internal QThreadPool's QQueued stack (so in my case I would rather prefer a QMap<quint64 timestampmsecs, QThreadPoolThread> instead of Qt core QQueued<QThreadPoolThread> stack).

      If such architecture is not theorically wrong, it means that i need to code my own version of some Qt core files.

      Is that architecture initially wrong ? Or can I create my QMap-time based QThreadPool system instead of QQueue ?

      (It's a casual development, it could be archaic)
      Thank you.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @coucougael94 Can you explain your use case? What is "remote QThreadPool"? How are these files related to your threads? "I wants to link one QThreadPool" - what does "link" mean here?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • C Offline
        C Offline
        coucougael94
        wrote on last edited by
        #3

        Thank for reply (excuse my irrelevant english)

        My use case :
        I want to manage two identic files. (it is not for a commercial usage).

        The exchange between computers will be made using tcp with serialized exchange of commands and datas.

        "remote QThreadPool" I want for the two computers, the two same stack, each seconds the two same file, and the two same computation, so the two same QThreadPool.

        How are these files related to your threads ?
        Each threadpool serve only one file, each threads can change or read the file (each thread one by one i.e maxThreadCount=1).

        "i wants to link one QThreadPool" a tcp link to have the same stack of modifications between the pair of files using msecs to have two same pool's stack.

        jsulmJ 1 Reply Last reply
        0
        • C coucougael94

          Thank for reply (excuse my irrelevant english)

          My use case :
          I want to manage two identic files. (it is not for a commercial usage).

          The exchange between computers will be made using tcp with serialized exchange of commands and datas.

          "remote QThreadPool" I want for the two computers, the two same stack, each seconds the two same file, and the two same computation, so the two same QThreadPool.

          How are these files related to your threads ?
          Each threadpool serve only one file, each threads can change or read the file (each thread one by one i.e maxThreadCount=1).

          "i wants to link one QThreadPool" a tcp link to have the same stack of modifications between the pair of files using msecs to have two same pool's stack.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @coucougael94 Why do you need threads?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          • Login

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