[c++-pthreads] thread-safety definition
Alexander Terekhov
boo at terekhov.de
Thu Jan 8 16:52:31 UTC 2004
Ted Baker wrote:
>
> > Heck, let's mandate to have async-cancel-safe strlen()-and-alike
> > stuff "in-addition-to OR instead-of" async-cancel-unsafe stuff
> > and simply use C++ function overloading to pick the right stuff
> > (async_cancel_safe inside async_cancel{}), okay?
>
> A joke? (With nested calls and separate compilation you obviously
> cannot tell what call is "inside" an async_cancel{}.)
It's pretty much like "const correctness" for member functions
but with "execution context" instead of "type of this" (and with
"async_cancel_safe"/"async_cancel {}" instead of "const").
regards,
alexander.
More information about the c++-pthreads
mailing list