Re: [c++-pthreads] cancellation points report failure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [c++-pthreads] cancellation points report failure
- To: c++-pthreads@xxxxxxxxxxxxxxxx
- Subject: Re: [c++-pthreads] cancellation points report failure
- From: Nathan Myers <ncm@xxxxxxxxxxx>
- Date: Mon, 22 Dec 2003 09:37:09 -0800
On Mon, Dec 22, 2003 at 02:15:07PM +0100, Alexander Terekhov wrote:
> Nathan Myers wrote:
> [...]
> > I don't know how to write C library code to maintain invariants
> > against stack unwinding.
>
> You simply use pthread_cleanup_push/pop.
>
> http://terekhov.de/DESIGN-futex-CV-with-async.cancelable-wait.txt
> http://groups.google.com/groups?selm=3EDE1AE2.3A8D0929%40web.de
My point was just that C does not offer the language facilities
needed to write exception-safe code. Anyhow, extensions involving
pthread_thisandthat aren't exercised in any of the libraries might
I want to use.
Nathan Myers
ncm@xxxxxxxxxxx