diff options
author | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-06-06 09:19:19 +0000 |
---|---|---|
committer | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-06-06 09:19:19 +0000 |
commit | 36a1aa6893b460191f4289e1fe90b11d892dc535 (patch) | |
tree | a8658e83d85ed5ffd72e65cc48407d3ceaa5987b /lib | |
parent | 5137f1186307479395d2f7c7d434f36bfa658072 (diff) |
Bug fix for obj.extend(Mutex_m).
This is patched by akira yamada.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mutex_m.rb | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/lib/mutex_m.rb b/lib/mutex_m.rb index e0fcf0f209..29549b833a 100644 --- a/lib/mutex_m.rb +++ b/lib/mutex_m.rb @@ -1,10 +1,12 @@ # # mutex_m.rb - -# $Release Version: 2.0$ +# $Release Version: 3.0$ # $Revision: 1.7 $ # $Date: 1998/02/27 04:28:57 $ # Original from mutex.rb -# by Keiju ISHITSUKA(SHL Japan Inc.) +# by Keiju ISHITSUKA(keiju@ishitsuka.com) +# modified by matz +# patched by akira yamada # # -- # Usage: @@ -27,7 +29,7 @@ module Mutex_m alias synchronize mu_synchronize } end - return self + self end def Mutex_m.extend_object(obj) @@ -49,7 +51,7 @@ module Mutex_m alias synchronize mu_synchronize end" end - initialize + mu_initialize end # locking @@ -102,10 +104,13 @@ module Mutex_m private - def initialize(*args) - ret = super + def mu_initialize @mu_waiting = [] @mu_locked = false; - return ret + end + + def initialize(*args) + mu_initialize + super end end |