[c++-pthreads] Re: C++ and posix threads
Richard Henderson
rth at redhat.com
Tue Dec 30 05:07:55 UTC 2003
On Mon, Dec 29, 2003 at 05:58:08PM -0800, Nathan Myers wrote:
> Have you ever coded C++?
Yes.
> > If you are seriously suggesting that printf work differently
> > depending on whether the object file is linked into a C or a
> > C++ program, then I give up. That is NOT an option. You will
> > get absolutely ZERO uptake from library implementors.
>
> Richard, all these "ZERO uptake" remarks make it very hard to discuss
> design decisions calmly.
If you think I mean just Uli, then you're wrong. I mean any vendor.
I also, personally, think that having different semantics for bleeding
system calls between C and C++ is the worst idea ever.
If you want to automatically disable cancelation while destructors
are running, that would be fine. Small changes to the exception
support code in libstdc++ could do that.
Beyond that, I have no idea what you think the problem is with
system calls throwing exceptions, nor what you hope to achieve
with ETHREADCANCEL.
r~
More information about the c++-pthreads
mailing list