[MacRuby-devel] thread-safety and collections in macruby
Jordan K. Hubbard
jkh at apple.com
Wed Oct 19 13:43:50 PDT 2011
On Oct 19, 2011, at 11:38 AM, Terry Moore wrote:
> Yes. But he does state it is a read only not modified array. My understanding is. 'Array' is an NSMutableArray, I was merely suggesting using freeze to throw that exception just in case there maybe some code attempting to write/modify.
>
> Mutex is the way to go but it also has an overhead.
Didn't somebody (Ernie?) already post a set of mix-ins for the mutable object classes that used a per-object GCD queue to serialize operations against the object? If the mail archives were easier to search, I'd pull it up, but it isn't and I'm too lazy. :)
- Jordan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20111019/1b2d2f5d/attachment.html>
More information about the MacRuby-devel
mailing list