[c++-pthreads] Re: thread-safety definition
Wil Evers
wil at bogo.xs4all.nl
Thu Jan 8 15:57:09 UTC 2004
Dave Butenhof wrote:
> If cancel is implemented completely as a "full stature" C++ exception,
> and none of the "exception safe" code does anything silly like
> "catch(...)" without a re-throw, then, yes, it's likely to be reasonably
> cancel-safe.
A catch(...) without a re-throw isn't necessarily a silly thing to do,
especially in a destructor. Sometimes, the only alternative is to risk
a call to terminate().
- Wil
More information about the c++-pthreads
mailing list