[c++-pthreads] cancellation points report failure
Nathan Myers
ncm at cantrip.org
Mon Dec 22 17:37:09 UTC 2003
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 at cantrip.org
More information about the c++-pthreads
mailing list