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

ruby-changes:45875

From: nobu <ko1@a...>
Date: Mon, 13 Mar 2017 11:14:21 +0900 (JST)
Subject: [ruby-changes:45875] nobu:r57948 (trunk): thread.c: rb_thread_fd_close [ci skip]

nobu	2017-03-13 11:14:15 +0900 (Mon, 13 Mar 2017)

  New Revision: 57948

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57948

  Log:
    thread.c: rb_thread_fd_close [ci skip]
    
    * thread.c (rb_thread_fd_close): re-define only for abi-check,
      abort if called.  [ruby-core:80078] [Bug #13304]

  Modified files:
    trunk/include/ruby/intern.h
    trunk/thread.c
Index: include/ruby/intern.h
===================================================================
--- include/ruby/intern.h	(revision 57947)
+++ include/ruby/intern.h	(revision 57948)
@@ -424,7 +424,7 @@ void rb_exec_end_proc(void); https://github.com/ruby/ruby/blob/trunk/include/ruby/intern.h#L424
 void rb_thread_schedule(void);
 void rb_thread_wait_fd(int);
 int rb_thread_fd_writable(int);
-void rb_thread_fd_close(int);
+DEPRECATED(void rb_thread_fd_close(int));
 int rb_thread_alone(void);
 void rb_thread_sleep(int);
 void rb_thread_sleep_forever(void);
Index: thread.c
===================================================================
--- thread.c	(revision 57947)
+++ thread.c	(revision 57948)
@@ -2197,6 +2197,16 @@ rb_notify_fd_close(int fd) https://github.com/ruby/ruby/blob/trunk/thread.c#L2197
     return busy;
 }
 
+void
+rb_thread_fd_close(int fd)
+{
+#ifdef DONT_USE
+    while (rb_notify_fd_close(fd));
+#else
+    DEPRECATED_INTERNAL_FEATURE("rb_thread_fd_close");
+#endif
+}
+
 /*
  *  call-seq:
  *     thr.raise

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

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