[c++-pthreads] C++ and posix threads
David Abrahams
dave at boost-consulting.com
Tue Dec 23 12:18:37 UTC 2003
Fergus Henderson <fjh at cs.mu.oz.au> writes:
> On 22-Dec-2003, Nathan Myers <ncm at cantrip.org> wrote:
>> On Tue, Dec 23, 2003 at 02:07:47AM +1100, Fergus Henderson wrote:
>
>> - make cancellation-safe C code also exception-safe, and
>> allow propagation of C++ exceptions through cancellation-safe
>> C code
>>
>> While cancellation-safe C code might exist, in principle, we should
>> not contort our solution to try to accommodate it. A correct C++
>> library does not let exceptions escape to C code, so this case is
>> only of academic interest.
>
> Here I don't agree.
Though all the points you make in opposition are well-made, I wonder
if you really disagree with what I consider to be Nathan's most
important point:
"While cancellation-safe C code might exist, in principle,
we should not contort our solution to try to accommodate it"
Fortunately, the question may be moot: is there really much we *can*
do with a C++ binding in order to "accomodate" cancellation-safe C
code? Surely throwing an exception into C++ code which *probably*
doesn't expect it doesn't do anything to help C code which might be
cancellation-safe?
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the c++-pthreads
mailing list