testing for image restart
Ned Konz
ned at bike-nomad.com
Sat Jan 4 00:18:12 UTC 2003
On Friday 03 January 2003 04:12 pm, Derek Brans wrote:
> Is there a way for the image to know when it has been restarted
> (ie, the vm is killed and then restarted).
Yes: all the classes registered with the startup list get notified by
calling their #startUp: or #startUp method. The parameter to startUp:
indicates whether the image is restarting after a snapshot.
you do this:
Smalltalk addToStartUpList: SomeClass.
later the system calls:
SomeClass startUp: true (if resuming after snapshot)
or
SomeClass startUp: false (if starting fresh)
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|