Re: Blocks vs. life, the universe and everything
Re: Blocks vs. life, the universe and everything
- Subject: Re: Blocks vs. life, the universe and everything
- From: Jean-Daniel Dupas <email@hidden>
- Date: Sat, 15 Oct 2011 21:28:17 +0200
Le 15 oct. 2011 à 21:10, Seth Willits a écrit :
> On Oct 14, 2011, at 2:27 PM, Greg Parker wrote:
>
>> Currently, a dispatch-provided autorelease pool is not drained until the dispatch worker thread goes idle. If you keep a dispatch queue continuously busy with dispatch work that generates autorelease pool garbage, then you might run into trouble.
>
> Well that's good to know! Hmm...
>
>
>
> Unrelated, when did @autoreleasepool pop in? I don't remember if I knew about that or not. It's _used_ once in the Obj-C Programming Language guide, but never documented anywhere I can find.
>
It appears with ARC.
For the rational, you can read this:
http://clang.llvm.org/docs/AutomaticReferenceCounting.html#autoreleasepool
-- Jean-Daniel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden