interrupt actions last come first served
authorca
Mon, 02 Feb 2004 17:19:36 +0100
changeset 7864 901973df01b4
parent 7863 516fa101129e
child 7865 67ea99d5edcc
interrupt actions last come first served
Process.st
--- a/Process.st	Mon Feb 02 17:16:45 2004 +0100
+++ b/Process.st	Mon Feb 02 17:19:36 2004 +0100
@@ -793,10 +793,9 @@
     interruptActions isNil ifTrue:[
         interruptActions := OrderedCollection with:aBlock.
     ] ifFalse:[
-        interruptActions addLast:aBlock.
+        interruptActions addFirst:aBlock.
     ].
     wasBlocked ifFalse:[OperatingSystem unblockInterrupts].
-
 !
 
 blockInterrupts
@@ -1649,7 +1648,7 @@
 
     suspendSemaphore notNil ifTrue:[suspendSemaphore signalForAll].
     suspendActions notNil ifTrue:[
-	suspendActions do:[:action | action value]
+        suspendActions do:[:action | action value]
     ].
 
     "
@@ -1661,7 +1660,7 @@
     (state == #active 
     or:[state == #run 
     or:[aStateSymbol == #stopped]]) ifTrue:[
-	state := aStateSymbol.
+        state := aStateSymbol.
     ].
     Processor suspend:self
 !
@@ -1974,7 +1973,7 @@
 !Process class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Process.st,v 1.141 2004-01-28 20:07:12 ca Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Process.st,v 1.142 2004-02-02 16:19:36 ca Exp $'
 ! !
 
 Process initialize!