diff options
| author | Alex Trotsenko <alex1973tr@gmail.com> | 2021-01-27 16:18:11 +0200 |
|---|---|---|
| committer | Oswald Buddenhagen <oswald.buddenhagen@gmx.de> | 2021-01-29 10:55:42 +0000 |
| commit | 8f9222db3b5976ac0977b9ed5f27744c24bd982e (patch) | |
| tree | fd48cf9661085d923ee1835bbecbdefcaf0472cf /src/corelib/animation/qpauseanimation.cpp | |
| parent | f9896cb3cdb884fbd98b0c60f55133b2e6c581d3 (diff) | |
QEventDispatcherGlib: do not omit active notifiers on source dispatching
It is quite common for a socket notifier to be disabled in a slot
connected to its activated() signal. But the event dispatcher did not
update the position in the list of registered notifiers, which caused
the next notifier to be omitted. Of course, on the next iteration of
the event loop, the omitted notifier would fire again, but this reduced
the scalability of applications that use a large number of sockets.
To solve the problem, we update the current position in the list when
a notifier becomes unregistered.
Change-Id: I6565bf23500d9e38ce84b34784d89d227fa166e1
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/animation/qpauseanimation.cpp')
0 files changed, 0 insertions, 0 deletions
