[ruby-cvs:71554] normal:r64464 (trunk): thread_sync.c (rb_mutex_sleep): skip interrupt check before sleep

normal at ruby-lang.org normal at ruby-lang.org
Sun Aug 19 05:04:07 JST 2018


normal	2018-08-19 05:04:07 +0900 (Sun, 19 Aug 2018)

  New Revision: 64464

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

  Log:
    thread_sync.c (rb_mutex_sleep): skip interrupt check before sleep
    
    We do not want to risk switching threads before going to sleep
    because it can cause unexpected wakeups and put us in an
    unexpected state when used with ConditionVariable.

  Modified files:
    trunk/thread.c
    trunk/thread_sync.c


More information about the ruby-cvs mailing list