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

* prelude.rb: fix Mutex#synchronize definition.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2007-08-24 18:10:37 +00:00
parent 5e1c401ff5
commit 85e3b47032
2 changed files with 9 additions and 7 deletions

View file

@ -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> 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 * array.c (rb_ary_s_try_convert): a new class method to convert

View file

@ -2,13 +2,11 @@
# Mutex # Mutex
class Mutex class Mutex
class Mutex def synchronize
def synchronize self.lock
self.lock yield
yield ensure
ensure self.unlock
self.unlock
end
end end
end end