This is the mail archive of the
mailing list for the pthreas-win32 project.
RE: Cancellation points
- From: Simon Gerblich <sgerblich at daronmont dot com dot au>
- To: pthreads-win32 at sources dot redhat dot com
- Date: Fri, 20 Dec 2002 09:59:17 +1030
- Subject: RE: Cancellation points
>> pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL)
>that's incorrect. Don't do this.
Is it correct if I put pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL)
after the small piece of code where I don't want a cancelation point? I am
aware that if I start using pthread_setcancelstate() in my code I should
take care to use the "oldstate" as described in the RATIONALE and restore
the state correctly.
I was only using pthread_setcancelstate to confirm if there was a problem
with the pthread_mutex_lock() function in the 2002-11-04 snapshot.