[c++-pthreads] The Ada example
Richard Henderson
rth at redhat.com
Thu Dec 25 00:21:40 UTC 2003
On Tue, Dec 23, 2003 at 08:03:57PM -0500, Jason Merrill wrote:
> More generally, how does Ada deal with this situation? From looking over
>
> http://www.adaic.org/standards/95lrm/html/RM-9-8.html
>
> it seems that task abort runs finalizers for objects, but doesn't interact
> with exception handling. In C++, the only way to run object destructors is
> via exception handling, unless we want to define a whole new parallel
> concept, which I doubt.
Well, yes and no. You'd do this the way I originally proposed --
non-exceptions such as longjmp_unwind and thread cancelation would
run cleanups, but not catch-all. We can tell the difference in the
encoding of the regions in the lsda.
r~
More information about the c++-pthreads
mailing list