Help: Unwinding the C++ stack...throw, longjmp & threads
Ulrich Drepper
drepper@cygnus.com
Wed Aug 25 09:14:00 GMT 1999
"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 `------------------------
More information about the Libc-alpha
mailing list