diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-29 13:09:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-29 13:09:52 +0000 |
commit | 99155e20a0077e423a2c44551a70f6b01746f36f (patch) | |
tree | 0f3a58e66522ee87801cd5f6299625ea366abd44 /thread.c | |
parent | 2418b20897ee9a4077cb98aab10249d1d1843cf9 (diff) | |
download | ruby-99155e20a0077e423a2c44551a70f6b01746f36f.tar.gz |
thread.c: Mutex#synchronize no block params
* thread.c (rb_mutex_synchronize_m): yield no block params. patch by
splattael (Peter Suschlik) in [ruby-core:53773] [Bug #8097].
fix GH-266.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4567,7 +4567,7 @@ rb_mutex_synchronize_m(VALUE self, VALUE args) rb_raise(rb_eThreadError, "must be called with a block"); } - return rb_mutex_synchronize(self, rb_yield, Qnil); + return rb_mutex_synchronize(self, rb_yield, Qundef); } void rb_mutex_allow_trap(VALUE self, int val) |