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:
parent
5e1c401ff5
commit
85e3b47032
2 changed files with 9 additions and 7 deletions
|
@ -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>
|
||||
|
||||
* array.c (rb_ary_s_try_convert): a new class method to convert
|
||||
|
|
12
prelude.rb
12
prelude.rb
|
@ -2,13 +2,11 @@
|
|||
# Mutex
|
||||
|
||||
class Mutex
|
||||
class Mutex
|
||||
def synchronize
|
||||
self.lock
|
||||
yield
|
||||
ensure
|
||||
self.unlock
|
||||
end
|
||||
def synchronize
|
||||
self.lock
|
||||
yield
|
||||
ensure
|
||||
self.unlock
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue