mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
thread.c: invert
* ext/thread/thread.c (queue_pop_should_block): the first argument of Queue#pop is non_block and inverted for should_block. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
398c3cab6d
commit
6bca9dc372
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ queue_pop_should_block(int argc, VALUE *argv)
|
|||
case 0:
|
||||
break;
|
||||
case 1:
|
||||
should_block = RTEST(argv[0]) ? Qtrue : Qfalse;
|
||||
should_block = RTEST(argv[0]) ? Qfalse : Qtrue;
|
||||
break;
|
||||
default:
|
||||
rb_raise(rb_eArgError, "wrong number of arguments (%d for 1)", argc);
|
||||
|
|
Loading…
Reference in a new issue