[MacRuby-devel] [MacRuby] #597: Dispatch Queue async method inconsistent results
Jordan K. Hubbard
jkh at apple.com
Wed Feb 3 12:43:49 PST 2010
On Feb 3, 2010, at 10:13 AM, MacRuby wrote:
> Using a copy of the array "sometimes" works, but I'm not quite sure how or
> why. Still, the technical answer is that attempting to modify a dynamic
> object inside a GCD leads to "undefined" behavior, so I'll mark this as
> "behaves correctly". :-/
I think this is going to be a perennial problem until we figure out some idiom for accessing variables from within GCD code (preferably something terse which can be easily taught, in the vein of @synchronized). Ruby programmers are just too used to having a GIL pay for their sins. :-(
- Jordan
More information about the MacRuby-devel
mailing list