diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-23 19:04:15 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-23 19:04:15 +0000 |
commit | 787c12da0b76cc9b0bfce90229cb26cbf2594426 (patch) | |
tree | 52dfc2fff398b3f81a4fa07495dde489cf4678a8 /test/dl | |
parent | fbee46fe66a0a531ef834e823bd2e600fa3fa095 (diff) | |
download | ruby-787c12da0b76cc9b0bfce90229cb26cbf2594426.tar.gz |
Synchronize with simple variable assignment.
If it uses Queue, Mutex#synchronize may suppress the exception caused by
th.raise. The case happens when Ruby switches the thread after it pushes :go
into q, in `self.unlock rescue nil`. The exception is rescued the
`rescue nil`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/dl')
0 files changed, 0 insertions, 0 deletions