diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-08-07 05:05:04 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-08-07 05:05:04 +0000 |
commit | c67251edb478509b4abd9910e0b499a116112a3c (patch) | |
tree | 81d59bfb40b0efc64b3acfc9cbe4dd7d3628af85 /lib/thread.rb | |
parent | 14fe04bdacfb1bbe1e568c4e1dd4092a64c5ede7 (diff) |
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/thread.rb')
-rw-r--r-- | lib/thread.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/thread.rb b/lib/thread.rb index fd51d6d562..12fe81c542 100644 --- a/lib/thread.rb +++ b/lib/thread.rb @@ -21,13 +21,13 @@ if $DEBUG end def Thread.exclusive + _old = Thread.critical begin Thread.critical = true - r = yield + return yield ensure - Thread.critical = false + Thread.critical = _old end - r end class Mutex |