This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: catch(...) and forced unwind


Richard Henderson <rth@redhat.com> writes:

> On Mon, Dec 15, 2003 at 12:20:18AM -0500, David Abrahams wrote:
>> > If you don't want to know about pthread_setcancelstate, then you should
>> > not use pthread_cancel either.  If you never use pthread_cancel, then
>> > none of this thread is even relevant.
>> 
>> I'm a library provider ;-)
>
> Then you have to either have to document that the library is
> not cancelation safe and point users at TFM when they don't
> read it, or expect pthread_cancel to be used and thus call
> pthread_setcancelstate appropriately.

Meaning that I have to know specifically about pthreads.  While I
agree that it's a widespread threading standard, I don't think that's
a good precedent to set.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]