Search code examples
objective-cobjective-c++

Auto releasing memory allocations


In my code I am auto releasing certain references. Most of the time I have seen that auto release is run under NSThreadPool. So is it required to run this under NSThreadPool? If so what will be the difference between pool release and pool drain.

Thank you


Solution

  • It is not required to run inside NSThreadPool. There is a similar post about pool release and pool drain. How does the NSAutoreleasePool autorelease pool work?