1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
keiju 2001-06-06 09:19:19 +00:00
parent 5137f11863
commit 36a1aa6893

View file

@ -1,10 +1,12 @@
# #
# mutex_m.rb - # mutex_m.rb -
# $Release Version: 2.0$ # $Release Version: 3.0$
# $Revision: 1.7 $ # $Revision: 1.7 $
# $Date: 1998/02/27 04:28:57 $ # $Date: 1998/02/27 04:28:57 $
# Original from mutex.rb # Original from mutex.rb
# by Keiju ISHITSUKA(SHL Japan Inc.) # by Keiju ISHITSUKA(keiju@ishitsuka.com)
# modified by matz
# patched by akira yamada
# #
# -- # --
# Usage: # Usage:
@ -27,7 +29,7 @@ module Mutex_m
alias synchronize mu_synchronize alias synchronize mu_synchronize
} }
end end
return self self
end end
def Mutex_m.extend_object(obj) def Mutex_m.extend_object(obj)
@ -49,7 +51,7 @@ module Mutex_m
alias synchronize mu_synchronize alias synchronize mu_synchronize
end" end"
end end
initialize mu_initialize
end end
# locking # locking
@ -102,10 +104,13 @@ module Mutex_m
private private
def initialize(*args) def mu_initialize
ret = super
@mu_waiting = [] @mu_waiting = []
@mu_locked = false; @mu_locked = false;
return ret end
def initialize(*args)
mu_initialize
super
end end
end end