[MacRuby-devel] [MacRuby] #420: GCD serial dispatch queues and groups that contain serial queues do not take surrounding scope reliably within loops/enumerators

MacRuby ruby-noreply at macosforge.org
Mon Nov 2 06:05:16 PST 2009


#420: GCD serial dispatch queues and groups that contain serial queues do not
take surrounding scope reliably within loops/enumerators
-----------------------------------+----------------------------------------
 Reporter:  johnmacshea@…          |       Owner:  lsansonetti@…        
     Type:  defect                 |      Status:  new                  
 Priority:  blocker                |   Milestone:                       
Component:  MacRuby                |    Keywords:  GCD                  
-----------------------------------+----------------------------------------
 See attached file with examples.

 Summary:[[BR]]

 - variables changed during a loop will not get passed correctly to the
 serial or group (with serial) queues, and quite often cause crashes.[[BR]]

 - if the loop has block variable (eg 100.times do |index|) the variable
 will be passed correctly most of the time, but no other changing variables
 will be.[[BR]]
 [[BR]]

 - when the loops are unrolled the dispatch queues take up the variables
 correctly - perhaps suggesting that it is yield issue within the
 enumerators.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/420>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list