This is the mail archive of the
pthreads-win32@sources.redhat.com
mailing list for the pthreas-win32 project.
Re: pthread_exit() does not call the cleanups
- From: Kereszt at crossys dot com
- To: pthreads-win32 at sources dot redhat dot com
- Date: Fri, 12 Nov 2004 20:29:33 +0100
- Subject: Re: pthread_exit() does not call the cleanups
- References: <20041112165053.GD2444@cross> <4194EB9F.6050002@tatramed.sk> <20041112170106.GE2444@cross>
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