This is the mail archive of the mailing list for the pthreas-win32 project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pthread_exit() does not call the cleanups

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,

> Sorry.. here it is.
> Thanks
> > Well, but the attachment is missing...
> > 
> > Regards
> > Peter Slacik
> > 
> > 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]