[c++-pthreads] I'm Lost
Wil Evers
wil at bogo.xs4all.nl
Tue Jul 26 21:19:56 UTC 2005
David Abrahams wrote:
> For example, it's important to me that
>
> Otherwise-correct C++ code not written to explicitly deal with
> cancellation should have a good chance of remaining correct in a
> POSIX environment with cancellation exceptions
>
> However, it may yet be possible to convince me to give that one up.
The problem is not to convince you. The problem is to convince the
otherwise-correct C++ code to behave like it used to.
> I think it's important to sort out the big principles and then weed out
> any major incompatibilities among them, prioritize if necessary, and
> when all that's done, think about how (or if) they can be implemented.
I'd say it's time to face the truth, which is that POSIX cancellation
semantics are incompatible with commonly established C++ coding
practices. As you may have noticed, my preferred solution is to
selectively apply POSIX cancellation to small regions of code
specifically written with cancellation in mind.
> Of course, maybe you guys are all going like gangbusters and I'm just
> too stupid to keep up.
I doubt that :-).
> If so, please forge on ahead without me!
That doesn't sound like a good idea at all.
- Wil
More information about the c++-pthreads
mailing list