Re: Multithreading and memory management question

2011-04-21 Thread eveningnick eveningnick
Hi Ken, > How are you spawning your threads? > If you use Cocoa methods, then they automatically retain the object which is > the target of the selector and the argument object for the life of the > thread.  So, you may be getting this automatically without realizing it.  If > not, then it shoul

Re: Multithreading and memory management question

2011-04-21 Thread Ken Thomases
On Apr 21, 2011, at 4:18 PM, eveningnick eveningnick wrote: > I have an application that has a shared object (which is a custom > container for elements - arrays, and which is protected by critical > sections in my code). I need to control it's lifetime - it should be > alive until the last thread