vcl: better variable naming for annotating low priority idles.

Change-Id: I80dd443a864bc63b4e0214a13efdd76474daa57f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182140
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Michael Meeks
2025-02-25 12:24:56 +01:00
parent 5a3d715524
commit 5554fff70e
+3 -2
View File
@@ -524,7 +524,8 @@ void Scheduler::CallbackTaskScheduling()
rSchedCtx.mpSchedulerStack = pMostUrgent;
rSchedCtx.mpSchedulerStackTop = pMostUrgent;
bool bIsHighPriorityIdle = pMostUrgent->mePriority >= TaskPriority::HIGH_IDLE;
// high priority idle handlers have smaller numerical values for mePriority
bool bIsLowerPriorityIdle = pMostUrgent->mePriority >= TaskPriority::HIGH_IDLE;
// invoke the task
Unlock();
@@ -533,7 +534,7 @@ void Scheduler::CallbackTaskScheduling()
// in the OS event queue. This will often effectively compress such events and repaint only
// once at the end, improving performance in cases such as repeated zooming with a complex document.
bool bDelayInvoking
= bIsHighPriorityIdle
= bIsLowerPriorityIdle
&& (rSchedCtx.mnIdlesLockCount > 0
|| Application::AnyInput(VclInputFlags::MOUSE | VclInputFlags::KEYBOARD | VclInputFlags::PAINT));