[PATCH] thread cancellation via C++ exception
Boris Kolpackov
boris at kolpackov.net
Tue May 18 15:25:10 UTC 2004
Ulrich Drepper <drepper at redhat.com> writes:
> This is not only not going to be added to glibc,
No illusions about that.
> it's also not guaranteed to work (probably doesn't work today) and
> can break in interesting ways at any time.
Are you talking about my patch or about the idea of finalizing
the exception?
> Cancellation, as the word already suggests, is final. There mustn't be
> any catch without rethrow. The thread library does, and will probably
> even more so in future, alter the state of the library once a thread is
> canceled and this is not reversible.
Agree. My patch prevents exception finalization in about the same way as
the original nptl code does.
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/phil-list/attachments/20040518/aa385578/attachment.sig>
More information about the Phil-list
mailing list