Revision: 3151 http://trac.macosforge.org/projects/ruby/changeset/3151 Author: pthomson@apple.com Date: 2009-12-22 15:07:31 -0800 (Tue, 22 Dec 2009) Log Message: ----------- Changed the sleeping_barber example to comply with the new GCD API. Modified Paths: -------------- MacRuby/trunk/sample-macruby/Scripts/gcd/sleeping_barber.rb Modified: MacRuby/trunk/sample-macruby/Scripts/gcd/sleeping_barber.rb =================================================================== --- MacRuby/trunk/sample-macruby/Scripts/gcd/sleeping_barber.rb 2009-12-22 23:07:23 UTC (rev 3150) +++ MacRuby/trunk/sample-macruby/Scripts/gcd/sleeping_barber.rb 2009-12-22 23:07:31 UTC (rev 3151) @@ -12,7 +12,7 @@ puts "Customer turned away #{index}" next end - waiting_chairs.dispatch do + waiting_chairs.async do semaphore.signal puts "Shave and a haircut #{index}" end