mutex PTHREAD_MUTEX_ERRORCHECK and pthread_cancel issues
mutex PTHREAD_MUTEX_ERRORCHECK and pthread_cancel issues
- Subject: mutex PTHREAD_MUTEX_ERRORCHECK and pthread_cancel issues
- From: Stéphane Letz <email@hidden>
- Date: Thu, 12 May 2005 17:40:50 +0200
Hi,
I am porting code that needs the PTHREAD_MUTEX_ERRORCHECK type of
pthread_mutex. But it seems that PTHREAD_MUTEX_ERRORCHECK is not
supported on Darwin. I get an EINVAL error when trying to use
pthread_mutexattr_settype.
Is there a workaround for that?
A second problem on the behaviour of pthread_cancel that is not
correct. Is the use of explicit pthread_testcancel the way to go or can
the following termination code be used safely?
mach_port_t machThread = pthread_mach_thread_np(fThread);
thread_terminate(machThread);
Thanks
Stephane Letz
_______________________________________________
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