Revision
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

Diff

Modified: MacRuby/trunk/sample-macruby/Scripts/gcd/sleeping_barber.rb (3150 => 3151)


--- 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