Re: [c++-pthreads] Re: What are the real issues?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [c++-pthreads] Re: What are the real issues?



On 06-Jan-2004, Howard Hinnant <hinnant@xxxxxxxxxxxx> wrote:
> In other words, the C++ language makes it so easy to write "cancelable 
> threads" and "cancel-safe code", are we making an easy problem hard by 
> trying to code a solution into a library?

Sure you can write your own cancellation framework.
That can be done quite easily in C too.

The point of standardizing a particular cancellation framework
is to enable interoperability between code written by different parties.
For example, this is needed to allow application code to cancel threads
which happen to be running third-party library code, or even standard
library code such as getchar() or system calls such as read().

-- 
Fergus Henderson <fjh@xxxxxxxxxxx>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.