[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH] thread cancellation via C++ exception



Ulrich Drepper <drepper 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

Attachment: signature.asc
Description: Digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]