From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20249 invoked by alias); 12 Nov 2004 19:29:48 -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 20045 invoked from network); 12 Nov 2004 19:29:41 -0000 Received: from unknown (HELO crossys.com) (80.98.38.32) by sourceware.org with SMTP; 12 Nov 2004 19:29:41 -0000 Received: from Kereszt by crossys.com with local (Exim 4.32) id I72ZHA-00011W-DT for pthreads-win32@sources.redhat.com; Fri, 12 Nov 2004 20:29:34 +0100 Date: Fri, 12 Nov 2004 19:29:00 -0000 From: Kereszt@crossys.com To: pthreads-win32@sources.redhat.com Subject: Re: pthread_exit() does not call the cleanups Message-ID: <20041112192933.GF2444@cross> References: <20041112165053.GD2444@cross> <4194EB9F.6050002@tatramed.sk> <20041112170106.GE2444@cross> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: <20041112170106.GE2444@cross> User-Agent: Mutt/1.4.1i X-SW-Source: 2004/txt/msg00141.txt.bz2 My fault. False alarm. At some point I failed to define __CLEANUP_CXX, and pthreadVSE doesn't work fine with C++ exceptions enabled (VC++ compiler option: /GX or /EHsc). MSDN says it can be mixed.. mostly.. but.. Unfortunately, the latest pthread release doesn't contain precompiled VCE binary.. I tried it from the previous (2004-06-22) release. Finally, I successfully compiled a fresh one with VS7. I am simply unable to get work nmake, some PATH or whatever seems to be missing but I cant hunt forever. I'm from UNIX.. it looks much cleaner for me.. Conclusion: Now, it works.. Maybe, this will help others browsing mail archives :) Thanks and best regards, Laszlo > Sorry.. here it is. > Thanks > > > Well, but the attachment is missing... > > > > Regards > > Peter Slacik > > > > Kereszt@crossys.com wrote: > > > > >Hello, > > > > > >I've found that with pthread-win32 the pthread_exit() does not call the > > >previously pushed (pthread_cleanup_push()) cleanup routines. I've just > > >tried > > >it on a linux box and it works as documented (does the call). > > > > > >I'm a bit newbie to pthread so it might be my fault. I've attached a little > > >sample code which reproduces the problem. > > > > > >Please, tell me what's the deal! > > > > > >Thanks, > > >Laszlo