Project

General

Profile

Backport #3212

Updated by kosaki (Motohiro KOSAKI) over 11 years ago

=begin 
  
  While tracking another issue with ConditionVariable, I realized that ConditionVariable#wait assumes that the waking-up side (#signal and #broadcast) will remove the thread from the list of waiters. 
 
  Unfortunately, Mutex#sleep may return right away if an interrupt is set for the thread, in which case the thread will stay in the condition variable's waiting list. 
 
 =end 
 

Back