class SystemUniversal
def new_thread cid, block
def new_thread cid, block q = Queue.new Thread.new(cid) do |cid| current = Thread.current current.abort_on_exception = true q.push current block.call cid end q.pop end
def new_thread cid, block q = Queue.new Thread.new(cid) do |cid| current = Thread.current current.abort_on_exception = true q.push current block.call cid end q.pop end