pthread_cancel and EH: let's try this again
Alexander Terekhov
terekhov at web.de
Thu Jul 21 11:50:18 UTC 2005
"Nathan (Jasper) Myers" wrote:
[...]
> If we don't rescue the libraries
That's not what you're after. You want magically turn cancel-unaware
stuff into cancel-safe. That's impossible. You should simply accept
the limitation of cancel-unaware libraries and let the clients ensure
that such code won't get canceled. Clients can use "cancel_off_guard"
around calls to such libraries or (it would be much better in my
theory) use ES fences and/or no_cancel{} scopes with the same effect
http://groups.google.de/group/comp.std.c++/msg/8e15996a760d7ea4
and rely on intelligent cancel delivery.
regards,
alexander.
More information about the c++-pthreads
mailing list