Re: [c++-pthreads] C++ and posix threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [c++-pthreads] C++ and posix threads
- To: Ted Baker <baker@xxxxxxxxxx>
- Subject: Re: [c++-pthreads] C++ and posix threads
- From: Jason Merrill <jason@xxxxxxxxxx>
- Date: Wed, 24 Dec 2003 08:09:57 -0500
On Tue, 23 Dec 2003 11:03:14 -0500, Ted Baker <baker@xxxxxxxxxx> 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