> On Aug 15, 2015, at 6:50 AM, Sandy McGuffog <[email protected]> wrote: > > Well, in my experience, in multithreaded code, if you can’t guarantee that > something won’t happen, sooner or later it will, so you better code around > it. Murphy’s law is particularly strong as regards multithreading :)
Come on. We can _guarantee_ that the autorelease pool won’t be drained in the middle of that code snippet, simply because the snippet doesn’t include the end brace of an @autoreleasepool block in between getting the array and accessing it. (You are aware that autorelease pools are per-thread, right?) —Jens _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
