Interleaving pthread_cleanups in C and C++

Geoff Keating geoffk@geoffk.org
Tue May 6 19:08:00 GMT 2003


> From: Alexandre Oliva <aoliva@redhat.com>
> Date: 06 May 2003 02:09:04 -0300

> On May  6, 2003, Geoff Keating <geoffk@geoffk.org> wrote:
> 
> >> From: Alexandre Oliva <aoliva@redhat.com>
> >> Date: 05 May 2003 22:30:46 -0300
> 
> >> On May  5, 2003, Geoff Keating <geoffk@geoffk.org> wrote:
> >> 
> >> > On the other hand, suppose that try/finally does eventually get
> >> > standardized... differently to the way that we implemented it.
> >> 
> >> How likely is it that the standards would define it differently from
> >> what several compilers already implement, just for the fun of it?
> 
> > Moderate.
> 
> Do you think they'd define __try/__finally, as opposed to try/finally?

They might have a <stdtry.h> header that imports try/finally; or they
might go with __try/__finally; or they might decide that it's not
worth the effort to standardize, or belongs in a separate standard
about C/C++ interaction.  It's impossible to tell without trying it.

-- 
- Geoffrey Keating <geoffk@geoffk.org>



More information about the Gcc mailing list