• 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
Re: pthread_join
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pthread_join


  • Subject: Re: pthread_join
  • From: Jonas Maebe <email@hidden>
  • Date: Sun, 12 Sep 2004 21:46:19 +0200


On 12 sep 2004, at 21:39, Marc Van Olmen wrote:

matt I understand that, but my remark was in the case a thread is joinable. Why am I currently obliged to call at the end of the thread function, 'pthread_detach' to release the resources of the thread, because If I dont' call 'pthread_detach' at the end of the thread function my virtual memory grows and keeps on growing when i create and delete my threads...

Because if the thread is joinable, it must be kept around since somewhere in the future someone may try to join it.



Jonas

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: pthread_join (From: Marc Van Olmen <email@hidden>)
 >Re: pthread_join (From: Matt Watson <email@hidden>)
 >Re: pthread_join (From: Marc Van Olmen <email@hidden>)

  • Prev by Date: Re: pthread_join
  • Next by Date: Self compiled gdb doesn't work with Xcode
  • Previous by thread: Re: pthread_join
  • Next by thread: Re: Directory Access Plugin question
  • Index(es):
    • Date
    • Thread