[MacRuby-devel] Thread safety in apply example?

Joshua Ballanco jballanc at gmail.com
Mon Jan 24 09:26:23 PST 2011


On Mon, Jan 24, 2011 at 12:15 PM, Charles Oliver Nutter <headius at headius.com
> wrote:

> Queue#apply is actually defined in gcd.c in MacRuby's code, so this
> would be a MacRuby bug. I'd have filed it, but I wasn't sure if I was
> missing something about MacRuby's Array and thread-safety.


Yeah, probably a documentation bug...but only sorta. Parallel/Not-Parallel
will depend on the queue. Apply just queues the block asynchronously the
number of times indicated by the argument. How the block executes depends on
the queue.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110124/a7eb84cd/attachment-0001.html>


More information about the MacRuby-devel mailing list