[c++-pthreads] Re: What are the real issues?
Fergus Henderson
fjh at cs.mu.OZ.AU
Wed Jan 7 03:06:40 UTC 2004
On 06-Jan-2004, Howard Hinnant <hinnant at twcny.rr.com> 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 at cs.mu.oz.au> | "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.
More information about the c++-pthreads
mailing list