[前][次][番号順一覧][スレッド一覧]

ruby-changes:30797

From: nobu <ko1@a...>
Date: Sun, 8 Sep 2013 04:04:52 +0900 (JST)
Subject: [ruby-changes:30797] nobu:r42879 (trunk): thread.c: invert

nobu	2013-09-08 04:04:39 +0900 (Sun, 08 Sep 2013)

  New Revision: 42879

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42879

  Log:
    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.

  Modified files:
    trunk/ext/thread/thread.c
Index: ext/thread/thread.c
===================================================================
--- ext/thread/thread.c	(revision 42878)
+++ ext/thread/thread.c	(revision 42879)
@@ -288,7 +288,7 @@ queue_pop_should_block(int argc, VALUE * https://github.com/ruby/ruby/blob/trunk/ext/thread/thread.c#L288
       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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]