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

ruby-changes:26344

From: kosaki <ko1@a...>
Date: Sat, 15 Dec 2012 14:39:37 +0900 (JST)
Subject: [ruby-changes:26344] kosaki:r38395 (trunk): * thread.c (rb_thread_wait_fd_rw): remove silly rb_thread_alone()

kosaki	2012-12-15 14:39:25 +0900 (Sat, 15 Dec 2012)

  New Revision: 38395

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

  Log:
    * thread.c (rb_thread_wait_fd_rw): remove silly rb_thread_alone()
      check.

  Modified files:
    trunk/ChangeLog
    trunk/thread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38394)
+++ ChangeLog	(revision 38395)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Dec 15 11:53:36 2012  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* thread.c (rb_thread_wait_fd_rw): remove silly rb_thread_alone()
+	  check.
+
 Sat Dec 15 10:22:38 2012  Nobuyoshi Nakada  <nobu@r...>
 
 	* thread.c (rb_thread_polling): revert but deprecate.
Index: thread.c
===================================================================
--- thread.c	(revision 38394)
+++ thread.c	(revision 38395)
@@ -3320,7 +3320,6 @@ rb_thread_wait_fd_rw(int fd, int read) https://github.com/ruby/ruby/blob/trunk/thread.c#L3320
     if (fd < 0) {
 	rb_raise(rb_eIOError, "closed stream");
     }
-    if (rb_thread_alone()) return;
     while (result <= 0) {
 	result = rb_wait_for_single_fd(fd, events, NULL);
 

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

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