QEventLoop maximum queue size?
-
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 -
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@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.
-
@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.