Is ScAreaLink::RefreshHdl run too often?

Jan-Marek Glogowski glogow at fbihome.de
Wed Jun 30 12:36:05 UTC 2021


Am 30.06.21 um 14:29 schrieb Stephan Bergmann:
> On 29/06/2021 18:51, Noel Grandin wrote:
>> I have seen the same problem in another application I maintain.
>>
>> My solution is that the repeat-delay time specified in my timers is 
>> always the time between the end of one invocation of a timer, and the 
>> start of the next invocation of that timer.
> 
> Yes, but I fail to understand how that ScAreaLink -> ScRefreshTimer -> 
> AutoTimer -> Timer -> Task inheritance chain schedules invocation.
> 

Timer:: / Task::SetDeletionFlags()

It deactivates the Task before processing it. For Auto* that is skipped,
so the task remains active, its ImplSchedulerData::mnUpdateTime is 
updated and it will be re-scheduled.

HTH


More information about the LibreOffice mailing list