[ruby-talk:02602] Re: different thread semantics 1.4.3 -> 1.4.4

From: matz@... (Yukihiro Matsumoto)
Date: 2000-04-28 16:22:47 UTC
List: ruby-talk #2602
Hi,

In message "[ruby-talk:02599] Re: different thread semantics 1.4.3 -> 1.4.4"
    on 00/04/28, Yukihiro Matsumoto <matz@netlab.co.jp> writes:

||As you can see, time-slicing has left the building. What is wrong?
|
|That's because time-slicing bug reported on [ruby-talk:1551].

Oops, problem was not there.  It's in thread.rb.  Sorry.
I happened to have removed context switching from Mutex#unlock.

Here's the patch.

--- thread.rb.orig	Sat Apr 29 01:20:49 2000
+++ thread.rb	Sat Apr 29 01:20:52 2000
@@ -71,6 +71,7 @@
       retry
     end
     Thread.critical = false
+    Thread.pass
     self
   end
 

In This Thread