[前][次][番号順一覧][スレッド一覧]

ruby-changes:1948

From: ko1@a...
Date: 14 Sep 2007 00:38:23 +0900
Subject: [ruby-changes:1948] seki - Ruby:r13439 (ruby_1_8): * lib/drb/extservm.rb (invoke_service): use Thread.exclusive instead of

seki	2007-09-14 00:38:04 +0900 (Fri, 14 Sep 2007)

  New Revision: 13439

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/lib/drb/extservm.rb

  Log:
    * lib/drb/extservm.rb (invoke_service): use Thread.exclusive instead of 
      Thread.critical


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/lib/drb/extservm.rb?r1=13439&r2=13438
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=13439&r2=13438

Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 13438)
+++ ruby_1_8/ChangeLog	(revision 13439)
@@ -1,3 +1,8 @@
+Fri Sep 14 00:34:25 2007  Masatoshi SEKI  <m_seki@m...>
+
+	* lib/drb/extservm.rb (invoke_service): use Thread.exclusive instead of 
+	  Thread.critical
+
 Wed Sep 12 23:12:22 2007  Yukihiro Matsumoto  <matz@r...>
 
 	* ruby.c (proc_options): -W should be allowed in RUBYOPT
Index: ruby_1_8/lib/drb/extservm.rb
===================================================================
--- ruby_1_8/lib/drb/extservm.rb	(revision 13438)
+++ ruby_1_8/lib/drb/extservm.rb	(revision 13439)
@@ -73,10 +73,11 @@
     end
 
     def invoke_service(name)
-      Thread.critical = true
-      @waiting.push Thread.current
-      @queue.push name
-      Thread.stop
+      Thread.exclusive do
+        @waiting.push Thread.current
+        @queue.push name
+        Thread.stop
+      end
     end
 
     def invoke_service_command(name, command)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]