From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20022 invoked by alias); 19 Dec 2002 23:29:41 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 20012 invoked from network); 19 Dec 2002 23:29:40 -0000 Received: from unknown (HELO ns1.daronmont.com.au) (150.101.16.97) by 209.249.29.67 with SMTP; 19 Dec 2002 23:29:40 -0000 Received: from no.name.available by ns1.daronmont.com.au via smtpd (for [209.249.29.67]) with SMTP; 19 Dec 2002 23:29:40 UT Received: by pd001649.daronmont.com.au with Internet Mail Service (5.5.2653.19) id ; Fri, 20 Dec 2002 09:59:27 +1030 Message-ID: <8179ED123ECCD611A5490000F822E6EA061BCA@pd001649.daronmont.com.au> From: Simon Gerblich To: pthreads-win32@sources.redhat.com Subject: RE: Cancellation points Date: Thu, 19 Dec 2002 15:29:00 -0000 MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2002/txt/msg00128.txt.bz2 >BTW, > >> pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL) > ^^^^ > >that's incorrect. Don't do this. > >regards, >alexander. alexander, 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. Thanks, Simon