[ruby-cvs:65045] naruse:r57879 (ruby_2_4): merge revision(s) 57477, 57478, 57479: [Backport #12405]

naruse at ruby-lang.org naruse at ruby-lang.org
Sun Mar 12 03:45:34 JST 2017


naruse	2017-03-12 03:45:34 +0900 (Sun, 12 Mar 2017)

  New Revision: 57879

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

  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_4/
  Modified files:
    branches/ruby_2_4/test/thread/test_queue.rb
    branches/ruby_2_4/thread.c
    branches/ruby_2_4/thread_sync.c
    branches/ruby_2_4/version.h


More information about the ruby-cvs mailing list