Project

General

Profile

Bug #6634 » lol2.rb

mame (Yusuke Endoh), 11/06/2012 12:16 AM

 
#! /usr/bin/env ruby
require 'threadpool'

set_trace_func(proc {|*a| p [Thread.current, a] })

t = ThreadPool.new(1)
t.process { sleep 0.01; puts 'lol'; t.shutdown! }
puts 'joining'
t.join
(4-4/6)