#DOCUMENTATION by cg
authorClaus Gittinger <cg@exept.de>
Thu, 03 Nov 2016 21:06:17 +0100
changeset 20763 b1e9ec00e8af
parent 20762 e2a745bdd401
child 20764 891db338d088
#DOCUMENTATION by cg class: ProcessorScheduler comment/format in: #dispatchLoop
ProcessorScheduler.st
--- a/ProcessorScheduler.st	Thu Nov 03 20:29:30 2016 +0100
+++ b/ProcessorScheduler.st	Thu Nov 03 21:06:17 2016 +0100
@@ -842,8 +842,8 @@
     "avoid confusion if entered twice"
 
     dispatching == true ifTrue:[
-	'Processor [info]: already in dispatch' infoPrintCR.
-	^ self
+        'Processor [info]: already in dispatch' infoPrintCR.
+        ^ self
     ].
     dispatching := true.
 
@@ -852,35 +852,43 @@
     "/ (thanks to stefans objectAllocation monitor,
     "/  this safes a bit of memory allocation in the scheduler)
 
-    dispatchAction := [ [dispatching] whileTrue:[ self dispatch ] ].
-
-    handlerAction := [:ex |
-			(HaltInterrupt accepts:ex creator) ifTrue:[
-			    "/ in a standalone application, we do not want those
-			    Smalltalk isStandAloneApp ifTrue:[
-				Smalltalk isStandAloneDebug ifFalse:[
-				    ('Processor [info]: ignored (', ex creator printString, ')') infoPrintCR.
-				    ex proceed.
-				]
-			    ].
-			].
-
-			('Processor [info]: caught (and ignored) signal (', ex creator printString, ')') infoPrintCR.
-			ex return
-		     ].
+    dispatchAction := 
+        [ 
+            [dispatching] whileTrue:[ 
+                self dispatch 
+            ] 
+        ].
+
+    handlerAction := 
+        [:ex |
+            (HaltInterrupt accepts:ex creator) ifTrue:[
+                "/ in a standalone application, we do not want those
+                Smalltalk isStandAloneApp ifTrue:[
+                    Smalltalk isStandAloneDebug ifFalse:[
+                        ('Processor [info]: ignored (', ex creator printString, ')') infoPrintCR.
+                        ex proceed.
+                    ]
+                ].
+            ].
+
+            ('Processor [info]: caught (and ignored) signal (', ex creator printString, ')') infoPrintCR.
+            ex return
+         ].
 
     ignoredSignals := SignalSet
-			with:HaltInterrupt
-			with:TerminateProcessRequest
-			with:RecursionError
-			with:AbortAllOperationRequest.
+                        with:HaltInterrupt
+                        with:TerminateProcessRequest
+                        with:RecursionError
+                        with:AbortAllOperationRequest.
 
     "/
     "/ I made this an extra call to dispatch; this allows recompilation
     "/  of the dispatch-handling code in the running system.
     "/
     [dispatching] whileTrue:[
-	ignoredSignals handle:handlerAction do:dispatchAction
+        ignoredSignals 
+            handle:handlerAction 
+            do:dispatchAction
     ].
 
     "/ we arrive here in standalone Apps,