Sha256: 9468264dbebe3980f46894bae0ae3ccd07409aa7d5dbf1c38f5b658fcf06426d
Contents?: true
Size: 608 Bytes
Versions: 117
Compression:
Stored size: 608 Bytes
Contents
require "#{File.dirname(__FILE__)}/spec_helper" describe 'A barrier' do it 'waits for variables to be bound before continuing' do local do |x, y, barrier_broken| Thread.new do barrier x, y unify barrier_broken, true end Thread.new { unify x, :x } Thread.new { unify y, :y } barrier_broken.should be_true end end it 'continues for variables that are already bound' do local do |x, y, barrier_broken| unify x, :x unify y, :y barrier x, y unify barrier_broken, true barrier_broken.should be_true end end end
Version data entries
117 entries across 117 versions & 3 rubygems