Skip to content

Commit

Permalink
* prelude.rb: fix Mutex#synchronize definition.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
ko1 committed Aug 24, 2007
1 parent 5e1c401 commit 85e3b47
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Sat Aug 25 03:08:57 2007 Koichi Sasada <[email protected]>

* prelude.rb: fix Mutex#synchronize definition.

Sat Aug 25 02:08:45 2007 Yukihiro Matsumoto <[email protected]>

* array.c (rb_ary_s_try_convert): a new class method to convert
Expand Down
12 changes: 5 additions & 7 deletions prelude.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 85e3b47

Please sign in to comment.