[macruby-changes] [3151] MacRuby/trunk/sample-macruby/Scripts/gcd/sleeping_barber.rb

source_changes at macosforge.org source_changes at macosforge.org
Tue Dec 22 15:07:31 PST 2009


Revision: 3151
          http://trac.macosforge.org/projects/ruby/changeset/3151
Author:   pthomson at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091222/82ad7e57/attachment.html>


More information about the macruby-changes mailing list