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. QThread signal-slot or zeromq is better for multiply connection to same Thread
Forum Updated to NodeBB v4.3 + New Features

QThread signal-slot or zeromq is better for multiply connection to same Thread

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 319 Views 1 Watching
  • 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.
  • R Offline
    R Offline
    RahibeMeryem
    wrote on last edited by
    #1

    Hi ,

    I have two video capture producer thread sending frames to mainwindow and than its calling the objectdetector thread .

    mainwindow connected two signal in object detector waiting to receive processed fram and than show on the screen .

    one video stream is vowking good and fast. But when I start seonf one its waiting to someting and now working or too slow.

    is there a possible signal slot race condition ?

    What is the fastest and best way to connect ?

    if I add Qt::QueuedConnection its workig but slow start and jittery very slow..

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you benchmark your functions ?
      What is the size of the frame you are processing ?
      At which rate ?
      By the way, if you need to explicitly set your connection type to queued, it likely means that you have an architecture issue as connections between objects living in different threads should be queued by default.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        Did you benchmark your functions ?
        What is the size of the frame you are processing ?
        At which rate ?
        By the way, if you need to explicitly set your connection type to queued, it likely means that you have an architecture issue as connections between objects living in different threads should be queued by default.

        R Offline
        R Offline
        RahibeMeryem
        wrote on last edited by
        #3

        @SGaist

        25 fps two stream and 2Mp mp4

        Somehow signal slots mechanism looks stuck..

        I can post full cod eif you needed

        SGaistS 1 Reply Last reply
        0
        • R RahibeMeryem

          @SGaist

          25 fps two stream and 2Mp mp4

          Somehow signal slots mechanism looks stuck..

          I can post full cod eif you needed

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @RahibeMeryem said in QThread signal-slot or zeromq is better for multiply connection to same Thread:

          @SGaist

          25 fps two stream and 2Mp mp4

          What exactly does that mean ? You seem to have more that two streams.

          Also, what are the properties of these streams and what are you using to read them in your Qt application ?

          Somehow signal slots mechanism looks stuck..

          I can post full cod eif you needed

          No, if anything post a minimal compilable application that shows the behaviour.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

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