[c++-pthreads] C++ and posix threads

Jason Merrill jason at redhat.com
Wed Dec 24 13:09:57 UTC 2003


On Tue, 23 Dec 2003 11:03:14 -0500, Ted Baker <baker at cs.fsu.edu> wrote:

> How do you propose to modify read() to throw an exception and
> still have backwards compatability with applications that expect
> read() to always return (more specifically, to return -1 if it
> fails)?

read() already doesn't return if it's acting on a cancellation request.
Throwing an exception is just a different way of not returning.

Jason



More information about the c++-pthreads mailing list