pthread_cancel and EH: let's try this again
Alexander Terekhov
terekhov at web.de
Wed Jul 20 10:31:13 UTC 2005
Nathan Myers wrote:
[...]
> What we're talking about here is mechanisms to control what happens
> when a thread is already in a cancelled state. As Wil had proposed,
> a thread in a C++ program starts out with the cancel state having no
> effect on any operation. If the thread turns on some form of response
> (by constructing one of Wil's objects, however implemented), then at
> any point within its scope where something is supposed to happen (e.g.
> a cancellation point), something happens. Precisely what happens
> then would depend on what sort of Wil-object is in scope.
Okay. Suppose I put Wil's "enabler" in each and every "thread-main" and
that all calls to your "thread-safe" library from "thread-mains" are
within cancel-enabled scopes. That would be criminal, right?
regards,
alexander.
More information about the c++-pthreads
mailing list