[c++-pthreads] pthread_cancel and EH: let's try this again
Peter Dimov
pdimov at mmltd.net
Mon Jul 18 13:48:43 UTC 2005
Ted Baker wrote:
> I don't think you can deliver a safe solution, with acceptable
> overhead and comprehensible to ordinary programmers. So, wouldn't
> it be more responsible to declare this combination as unsafe,
> and let this discussion die?
That's even more surreal.
C, a language that has no exceptions and no concept of exception safety,
enables programmers to use thread cancellation via a mechanism that is
(admittedly) lifted from C++...
... but C++, a language with exceptions and almost a decade of experience in
exception safety declares cancellation unsafe and actively prohibits its
use?
Responsible?
More information about the c++-pthreads
mailing list