help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] [PATCH 2/5] process: Set the priority directly instead


From: Holger Hans Peter Freyther
Subject: [Help-smalltalk] [PATCH 2/5] process: Set the priority directly instead of using the selector
Date: Sun, 9 Sep 2012 23:56:59 +0200

From: Holger Hans Peter Freyther <address@hidden>

The current priority might not be good enough when being passed
to the Process>>#priority: selector. I don't have an example of
when this happened right now.

2012-09-09  Holger Freyther  <address@hidden>

        * kernel/CallinProcess.st: Copy the priority directly.
---
 ChangeLog               |    4 ++++
 kernel/CallinProcess.st |    2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 54f72d5..3f945d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-09-09  Holger Freyther  <address@hidden>
+
+       * kernel/CallinProcess.st: Copy the priority directly.
+
 2012-02-22  Paolo Bonzini  <address@hidden>
 
        * kernel/CallinProcess.st: Fix creation of cloned process, reported
diff --git a/kernel/CallinProcess.st b/kernel/CallinProcess.st
index 8094524..3be75ed 100644
--- a/kernel/CallinProcess.st
+++ b/kernel/CallinProcess.st
@@ -68,7 +68,7 @@ invoked me no longer exist).  I am otherwise equivalent to a 
Process.'>
             p instVarAt: i put: (self instVarAt: i) ].
 
         "Start executing the detached process from here."
-        p priority: self priority.
+        p instVarNamed: #priority put: priority.
         p suspendedContext: thisContext copy.
 
         Processor activeProcess == self ifTrue: [
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]