This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


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

Re: Help: Unwinding the C++ stack...throw, longjmp & threads


"George T. Talbot" <george@moberg.com> writes:

> I don't understand what you need.  Do you need the return to actually
> call some function like _pthread_cleanup_pop()?

Yes.

> If something is TRUE, and the function returns at the return statement,
> then _pthread_cleanup_pop(&_buffer, (execute)) will not get called, and
> the library will leave the cleanup handler registered when the scope is
> exited.  That doesn't seem right.

I'm calling n some situations _pthread_cleanup_pop directly.  I can do
this since the thread library is also part of glibc.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

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