[ruby-cvs:66207] normal:r59030 (trunk): thread.c: avoid busy looping on rb_thread_fd_close

normal at ruby-lang.org normal at ruby-lang.org
Wed Jun 7 09:32:02 JST 2017


normal	2017-06-07 09:32:02 +0900 (Wed, 07 Jun 2017)

  New Revision: 59030

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

  Log:
    thread.c: avoid busy looping on rb_thread_fd_close
    
    We no longer use it this function, but extensions do, and
    we need to ensure it continues to work for them.
    
    * thread.c (rb_thread_fd_close): schedule other threads in loop
    * ext/-test-/thread_fd_close/thread_fd_close.c: new file
    * ext/-test-/thread_fd_close/depend: ditto
    * ext/-test-/thread_fd_close/extconf.rb: ditto
    * test/-ext-/thread_fd_close/test_thread_fd_close.rb: new test

  Added directories:
    trunk/ext/-test-/thread_fd_close/
    trunk/test/-ext-/thread_fd_close/
  Added files:
    trunk/ext/-test-/thread_fd_close/depend
    trunk/ext/-test-/thread_fd_close/extconf.rb
    trunk/ext/-test-/thread_fd_close/thread_fd_close.c
    trunk/test/-ext-/thread_fd_close/test_thread_fd_close.rb
  Modified files:
    trunk/thread.c


More information about the ruby-cvs mailing list