Allocation in Pools and threads
Allocation in Pools and threads
- Subject: Allocation in Pools and threads
- From: Ken Tozier <email@hidden>
- Date: Mon, 14 Jun 2004 23:19:59 -0400
Is it necessary to always create a new NSAutoreleasePool in detached
threads? And if so, what happens to objects allocated between the
creation and disposal of the pool?
The reason I ask is that I have a class that spawns a thread in one of
it's more time consuming methods but I want the method to write it's
results to an instance variable of the class when it's done doing it's
thing. Won't the data the method writes to the instance variable get
zapped when I release the pool?
Thanks
Ken
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.