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

ruby-changes:3484

From: ko1@a...
Date: 10 Jan 2008 18:01:46 +0900
Subject: [ruby-changes:3484] matz - Ruby:r14977 (trunk): * prelude.rb (Mutex::synchronize): capture exception from unlock.

matz	2008-01-10 18:01:30 +0900 (Thu, 10 Jan 2008)

  New Revision: 14977

  Modified files:
    trunk/ChangeLog
    trunk/prelude.rb

  Log:
    * prelude.rb (Mutex::synchronize): capture exception from unlock.
      [ruby-dev:32935]

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/prelude.rb?r1=14977&r2=14976&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14977&r2=14976&diff_format=u

Index: prelude.rb
===================================================================
--- prelude.rb	(revision 14976)
+++ prelude.rb	(revision 14977)
@@ -7,7 +7,7 @@
     begin
       yield
     ensure
-      self.unlock
+      self.unlock rescue nil
     end
   end
 end
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 14976)
+++ ChangeLog	(revision 14977)
@@ -1,3 +1,8 @@
+Thu Jan 10 18:00:41 2008  Yukihiro Matsumoto  <matz@r...>
+
+	* prelude.rb (Mutex::synchronize): capture exception from unlock.
+	  [ruby-dev:32935]
+
 Thu Jan 10 10:15:03 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* io.c (io_encoding_set): IO.pipe("euc-jp", nil) should work as

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

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