• 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: mutex PTHREAD_MUTEX_ERRORCHECK and pthread_cancel issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mutex PTHREAD_MUTEX_ERRORCHECK and pthread_cancel issues


  • Subject: Re: mutex PTHREAD_MUTEX_ERRORCHECK and pthread_cancel issues
  • From: Matt Watson <email@hidden>
  • Date: Fri, 13 May 2005 08:52:44 -0700

I am seeing the behavior you are seeing now. The cleanup handler is being called, but printf is failing (write() is returning EINTR) when called from a cleanup handler triggered by a pthread_testcancel()'d thread. I will look into this. Thank you for the example.

I don't have an answer to the async cancellation case, besides "don't do that". Async cancellation is very dangerous and should be avoided.

matt.
_______________________________________________
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: 
 >mutex PTHREAD_MUTEX_ERRORCHECK and pthread_cancel issues (From: Stéphane Letz <email@hidden>)
 >Re: mutex PTHREAD_MUTEX_ERRORCHECK and pthread_cancel issues (From: Matt Watson <email@hidden>)
 >Re: mutex PTHREAD_MUTEX_ERRORCHECK and pthread_cancel issues (From: Stéphane Letz <email@hidden>)
 >Re: mutex PTHREAD_MUTEX_ERRORCHECK and pthread_cancel issues (From: Matt Watson <email@hidden>)
 >Re: mutex PTHREAD_MUTEX_ERRORCHECK and pthread_cancel issues (From: Stéphane Letz <email@hidden>)
 >Re: mutex PTHREAD_MUTEX_ERRORCHECK and pthread_cancel issues (From: Matt Watson <email@hidden>)
 >Re: mutex PTHREAD_MUTEX_ERRORCHECK and pthread_cancel issues (From: Stéphane Letz <email@hidden>)

  • Prev by Date: passwordserver_sasl-59.2
  • Next by Date: pthread_cond_timedwait() bug in Tiger?
  • Previous by thread: Re: mutex PTHREAD_MUTEX_ERRORCHECK and pthread_cancel issues
  • Next by thread: Problem with dlsym
  • Index(es):
    • Date
    • Thread