summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-24 18:10:37 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-24 18:10:37 +0000
commit85e3b4703208af36a0b15ecaf12c17f658138d8c (patch)
tree1711446eccccdea3a94f533f90e97a333484a1a6
parent5e1c401ff5f72bb5e2bc6eb844b65977881a71c9 (diff)
* prelude.rb: fix Mutex#synchronize definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--prelude.rb12
2 files changed, 9 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 7a1f5375ba0..85043b00dd9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sat Aug 25 03:08:57 2007 Koichi Sasada <ko1@atdot.net>
+
+ * prelude.rb: fix Mutex#synchronize definition.
+
Sat Aug 25 02:08:45 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* array.c (rb_ary_s_try_convert): a new class method to convert
diff --git a/prelude.rb b/prelude.rb
index 423c9c423ec..6451b8f74ae 100644
--- a/prelude.rb
+++ b/prelude.rb
@@ -2,13 +2,11 @@
# Mutex
class Mutex
- class Mutex
- def synchronize
- self.lock
- yield
- ensure
- self.unlock
- end
+ def synchronize
+ self.lock
+ yield
+ ensure
+ self.unlock
end
end