mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Reap rarely leaked threads
This commit is contained in:
		
							parent
							
								
									2fa0d51ac9
								
							
						
					
					
						commit
						c19685e208
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -89,6 +89,9 @@ class TestThreadConditionVariable < Test::Unit::TestCase
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    assert_equal ["C1", "C1", "C1", "P1", "P2", "C2", "C2", "C2"], result
 | 
					    assert_equal ["C1", "C1", "C1", "P1", "P2", "C2", "C2", "C2"], result
 | 
				
			||||||
 | 
					  ensure
 | 
				
			||||||
 | 
					    threads.each(&:kill)
 | 
				
			||||||
 | 
					    threads.each(&:join)
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def test_condvar_wait_deadlock
 | 
					  def test_condvar_wait_deadlock
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue