add extra timeout with higher priority to LOK flushing
commit6552ec19d1920a0c4ab074b4a16afc0fe39296f3
authorLuboš Luňák <l.lunak@collabora.com>
Thu, 23 Sep 2021 22:11:04 +0000 (24 00:11 +0200)
committerLuboš Luňák <l.lunak@collabora.com>
Tue, 28 Sep 2021 12:01:07 +0000 (28 14:01 +0200)
tree6ed73bbe2f8f0add64c537dac02739d960ae8a77
parenteed05aae4a308224ffde7e00d347830f80bbefef
add extra timeout with higher priority to LOK flushing

The normal idle has TaskPriority::POST_PAINT, which means that
if we get too busy, the idle won't be called for a long time,
meaning the queue will get longer and longer, making its processing
slower, and client interactivity will be very poor, with updates
possibly coming only when everything becomes idle.

The second timeout will flush the queue after a reasonable timeout.
I don't think there's an optimal value, so let's choose 100ms for now.

Change-Id: Ia1312a690aefd2c8628c82e0f42b2993802d8b1e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122728
Tested-by: Luboš Luňák <l.lunak@collabora.com>
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
desktop/inc/lib/init.hxx
desktop/source/lib/init.cxx