diff options
| author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-24 06:42:04 +0000 |
|---|---|---|
| committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-24 06:42:04 +0000 |
| commit | 02cf0326d3fa735c8f6215556043851fd855e765 (patch) | |
| tree | 1585b12bd803692a226a4a3e24b6d658414da73f /lib/thread.rb | |
| parent | c5827480d46eeecfe0df8984bfa62683a40cbedb (diff) | |
| download | ruby-02cf0326d3fa735c8f6215556043851fd855e765.tar.gz ruby-02cf0326d3fa735c8f6215556043851fd855e765.tar.xz ruby-02cf0326d3fa735c8f6215556043851fd855e765.zip | |
* lib/thread.rb: do not redefine Mutex#synchronize.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/thread.rb')
| -rw-r--r-- | lib/thread.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/thread.rb b/lib/thread.rb index 11c9d5a1c..96e7875be 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 |
