ProcessorScheduler.st
branchjv
changeset 18630 a74d669db937
parent 18301 d0a478542bbf
parent 18620 b4e9f25d6ce6
child 18679 882c5a65fae3
--- a/ProcessorScheduler.st	Wed Jul 22 06:38:29 2015 +0200
+++ b/ProcessorScheduler.st	Fri Jul 24 08:06:37 2015 +0100
@@ -337,7 +337,7 @@
 	sz := KnownProcessIds size.
 	1 to:sz do:[:index |
 	    "/ (KnownProcesses at:index) isNil ifTrue:[
-	    (KnownProcesses at:index) == 0 ifTrue:[
+	    (KnownProcesses at:index) class == SmallInteger ifTrue:[
 		id := KnownProcessIds at:index.
 		id notNil ifTrue:[
 		    'Processor [warning]: terminating thread ' errorPrint.
@@ -455,14 +455,14 @@
 knownProcesses
     "return a collection of all (living) processes in the system"
 
-    ^ KnownProcesses select:[:p | p notNil and:[p ~~ 0]]
+    ^ KnownProcesses select:[:p | p notNil and:[p class ~~ SmallInteger]]
 !
 
 knownProcessesDo:aBlock
     "evaluate aBlock for each (living) processes in the system"
 
     KnownProcesses do:[:p |
-	(p notNil and:[p ~~ 0]) ifTrue:[aBlock value:p]
+	(p notNil and:[p class ~~ SmallInteger]) ifTrue:[aBlock value:p]
     ]
 
     "Created: / 26-10-2012 / 13:02:33 / cg"
@@ -1008,7 +1008,7 @@
     "
     processesToRestart := OrderedCollection new.
     KnownProcesses do:[:p |
-	(p notNil and:[p ~~ 0]) ifTrue:[
+	(p notNil and:[p class ~~ SmallInteger]) ifTrue:[
 	    "how, exactly should this be done ?"
 
 	    p isRestartable == true ifTrue:[
@@ -3564,11 +3564,11 @@
 !ProcessorScheduler class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/ProcessorScheduler.st,v 1.303 2015-04-27 17:04:46 cg Exp $'
+    ^ '$Header$'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/ProcessorScheduler.st,v 1.303 2015-04-27 17:04:46 cg Exp $'
+    ^ '$Header$'
 ! !