help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Funny Delay timer bug with image suspend and resump


From: Holger Hans Peter Freyther
Subject: Re: [Help-smalltalk] Funny Delay timer bug with image suspend and resumption
Date: Thu, 22 Sep 2011 10:12:02 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Thunderbird/3.1.13

On 09/22/2011 10:03 AM, Paolo Bonzini wrote:
> On 09/22/2011 12:55 AM, Holger Hans Peter Freyther wrote:
>> Delay.TimeoutSem signal
> 
> Good, thanks.
> 
>> probably combined with restoring the uptime could be quite nice. My current
>> 'timer' code is using wall-clock time... i plan to update it to a monotonic
>> tick, it would be nice if Time millisecondsClockValue would be that.
> 
> millisecondsClockValue is monotonic, just not across image saves.

Okay, how to move forward then:

a)

we keep track of alarms and we expire them on image resume? this will probably
require modifications to the image format? We use addDependent on Time to
save/restore the millisecondsClockValue?


b)

We just let each Delay expire after a image restoration? E.g. by a resume
handler that sets the expected millisecondsClockValue to 0 and then calls the
Delay.Timeout... signal handler...

different:
Looking at the code, it appears that Process signal: atMilliseconds can only
be used by one user on the VM?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]