reduced.rb

Reduced testcase - meh. I don't care, 06/26/2012 01:59 AM

Download (170 Bytes)

 
1
#! /usr/bin/env ruby
2
require 'thread'
3

    
4
mutex  = Mutex.new
5
cond   = ConditionVariable.new
6

    
7
thread = Thread.new {
8
        mutex.synchronize {
9
                cond.wait(mutex)
10
        }
11
}
12

    
13
thread.join