• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Allocation in Pools and threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Allocation in Pools and threads
      • From: Charles PARNOT <email@hidden>
    • Re: Allocation in Pools and threads
      • From: Greg Hulands <email@hidden>
  • Prev by Date: Re: Does any one know how to get a running processes id?
  • Next by Date: Re: Allocation in Pools and threads
  • Previous by thread: Re: Does any one know how to get a running processes id?
  • Next by thread: Re: Allocation in Pools and threads
  • Index(es):
    • Date
    • Thread