aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-24 06:42:04 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-24 06:42:04 +0000
commit97d26f32bbea750e4b3a6be8ee327f907d871166 (patch)
tree1585b12bd803692a226a4a3e24b6d658414da73f
parent33a9e63ad9cbd673e84d0403fb7c72cdc9b1a616 (diff)
downloadruby-97d26f32bbea750e4b3a6be8ee327f907d871166.tar.gz
* lib/thread.rb: do not redefine Mutex#synchronize.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--lib/thread.rb9
2 files changed, 4 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 032efbac96..71dc12b322 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sat Feb 24 15:41:22 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/thread.rb: do not redefine Mutex#synchronize.
+
Sat Feb 24 15:14:02 2007 Shugo Maeda <shugo@ruby-lang.org>
* lib/monitor.rb: rewritten using Mutex/ConditionVariable.
diff --git a/lib/thread.rb b/lib/thread.rb
index 11c9d5a1cc..96e7875bea 100644
--- a/lib/thread.rb
+++ b/lib/thread.rb
@@ -21,15 +21,6 @@ if $DEBUG
Thread.abort_on_exception = true
end
-class Mutex
- def synchronize
- self.lock
- yield
- ensure
- self.unlock
- end
-end
-
#
# ConditionVariable objects augment class Mutex. Using condition variables,
# it is possible to suspend while in the middle of a critical section until a