[squeak-dev] Delays getting mangled across save

Bob Arning arning315 at comcast.net
Tue Aug 6 19:57:18 UTC 2013


Well, this seems to fix it:

'From Squeak4.4 of 1 March 2013 [latest update: #12489] on 6 August 2013 
at 3:39:29 pm'!

!Delay class methodsFor: 'snapshotting' stamp: 'raa 8/6/2013 15:22'!
restoreResumptionTimes
     "Private!! Restore the resumption times of all scheduled Delays 
after a snapshot or clock roll-over. This method should be called only 
while the AccessProtect semaphore is held."

     | newBaseTime |
     newBaseTime := Time millisecondClockValue.
     SuspendedDelays do: [:d | d adjustResumptionTimeOldBase: 0 newBase: 
newBaseTime].
     ActiveDelay == nil ifFalse: [
         ActiveDelay adjustResumptionTimeOldBase: 0 newBase: newBaseTime.
     ].
     ActiveDelayStartTime _ newBaseTime "<-----this"! !

Cheers,
Bob

On 8/6/13 3:27 PM, tim Rowledge wrote:
> Well the timer stuff has certainly been messed about with a lot since I last had to dig into it, but it looks like it *ought* to work ok.
>
> The only likely culprit I can spot is some issue with adjusting the resumption times after the restart, but that would require some problem with the millisecond time prim.
>
>
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Strange OpCodes: YVR: Branch to Vancouver
>
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20130806/67263266/attachment.htm


More information about the Squeak-dev mailing list