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. QEventLoop maximum queue size?
Forum Updated to NodeBB v4.3 + New Features

QEventLoop maximum queue size?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 532 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.
  • F Offline
    F Offline
    fpsio
    wrote on last edited by
    #1

    Hi,

    I was looking through the documentation trying to find the answer to these questions, but I came up empty-handed repeatedly:

    What is the maximum size of an event queue/QEventLoop? Or is there none and it gets allocated dynamically as needed?

    I'm working on a soft-realtime application and I wonder if I need to add another step of decoupling if I want to guarantee a certain minimum number of events that can be queued before they get processed.

    Also is there a way to detect when the event loop either grows above a certain size (either approaching the maximum size in the first case or a self-selected limit in the second case)?

    Kind regards,
    fpsio

    JonBJ 1 Reply Last reply
    0
    • F fpsio

      Hi,

      I was looking through the documentation trying to find the answer to these questions, but I came up empty-handed repeatedly:

      What is the maximum size of an event queue/QEventLoop? Or is there none and it gets allocated dynamically as needed?

      I'm working on a soft-realtime application and I wonder if I need to add another step of decoupling if I want to guarantee a certain minimum number of events that can be queued before they get processed.

      Also is there a way to detect when the event loop either grows above a certain size (either approaching the maximum size in the first case or a self-selected limit in the second case)?

      Kind regards,
      fpsio

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @fpsio
      I believe there is no particular size to the event loop queue. It accomodates dynamically. Unless your code is pathological you should regard it as unlimited, I have never heard of signals being lost/not put into the queue.

      Equally you have no access to its current or maximum size. That is not available to you, and you should not care.

      F 1 Reply Last reply
      1
      • JonBJ JonB

        @fpsio
        I believe there is no particular size to the event loop queue. It accomodates dynamically. Unless your code is pathological you should regard it as unlimited, I have never heard of signals being lost/not put into the queue.

        Equally you have no access to its current or maximum size. That is not available to you, and you should not care.

        F Offline
        F Offline
        fpsio
        wrote on last edited by
        #3

        @JonB

        Hi!

        Thanks for your quick reply. That does make sense.

        Kind regards,
        fpsio

        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