Re: [c++-pthreads] The Ada example
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [c++-pthreads] The Ada example



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~