On Jan 6, 2011, at 2:48 PM, Laurent Sansonetti wrote:

> Yes, MacRuby is fully re-entrant and multi-threaded. The GC also runs on its 
> own threads and will allocate/collect memory from them. There shouldn't be 
> any problem, assuming you are careful not trying to run into the same object 
> from different threads.  Unlike the traditional Ruby implementation, there is 
> no global lock to prevent race conditions.

... and, of course, since MacRuby supports GCD, the appropriate thing to do is 
simply tie each potentially contended object to its own GCD queue and use the 
async setter / sync getter pattern to make sure that everything works the way 
you expect!

- Jordan

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to