[ruby-cvs:65206] nagachika:r58036 (ruby_2_3): merge revision(s) 57477, 57478, 57479: [Backport #12405]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Mon Mar 20 21:26:14 JST 2017


nagachika	2017-03-20 21:26:14 +0900 (Mon, 20 Mar 2017)

  New Revision: 58036

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

  Log:
    merge revision(s) 57477,57478,57479: [Backport #12405]
    
    use TRUE/FALSE.
    
    define rb_thread_sleep_deadly_allow_spurious_wakeup().
    
    * thread.c, thread_sync.c: define new function
      rb_thread_sleep_deadly_allow_spurious_wakeup() and use it instead of
      using sleep_forever() directly.
    
    allow Queue operation in trap.
    
    * thread_sync.c: allow spurious wakeup to check Queue status just after trap.
      [Bug #12405]
    
    * test/thread/test_queue.rb: add a test for it.

  Modified directories:
    branches/ruby_2_3/
  Modified files:
    branches/ruby_2_3/test/thread/test_queue.rb
    branches/ruby_2_3/thread.c
    branches/ruby_2_3/thread_sync.c
    branches/ruby_2_3/version.h


More information about the ruby-cvs mailing list