[ruby-cvs:65286] usa:r58115 (ruby_2_2): merge revision(s) 57477, 57478, 57479, 57492: [Backport #12405]

usa at ruby-lang.org usa at ruby-lang.org
Sun Mar 26 03:07:08 JST 2017


usa	2017-03-26 03:07:08 +0900 (Sun, 26 Mar 2017)

  New Revision: 58115

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

  Log:
    merge revision(s) 57477,57478,57479,57492: [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.
    
    test_queue.rb: fix portability
    
    * test/thread/test_queue.rb (test_queue_with_trap): fix
      portability.  use SIGINT instead of SIGUSR2 which is supported
      on not all platforms.

  Modified directories:
    branches/ruby_2_2/
  Modified files:
    branches/ruby_2_2/ext/thread/thread.c
    branches/ruby_2_2/test/thread/test_queue.rb
    branches/ruby_2_2/thread.c
    branches/ruby_2_2/version.h


More information about the ruby-cvs mailing list