summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-27 09:41:15 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-27 09:41:15 +0200
commit5c7b52662c37d9ebfcf17a44a449cbc96506fb9a (patch)
tree23c063c087425fc3836fb79ab5120793aa55bb45
parentf5c5febae8f2a2bbe2fab5711b335f09efeaf422 (diff)
timer: Implement the shutdown for GNU Smalltalk too.
-rw-r--r--Timer.st6
1 files changed, 6 insertions, 0 deletions
diff --git a/Timer.st b/Timer.st
index 8d6adeb..b2acac0 100644
--- a/Timer.st
+++ b/Timer.st
@@ -106,6 +106,12 @@ bit difficult to do this race free.'>
doShutDown [
"Nothing for GST"
+ loop ifNil: [^self].
+ quit := true.
+ loop isSuspended ifTrue: [loop resume].
+ delay ifNotNil: [:the_delay | the_delay signal].
+ processExited wait.
+ Transcript nextPutAll: 'Stopped the TimerScheduler process'; cr
]
dispatchTimers [