[c++-pthreads] C++ and posix threads

Gabriel Dos Reis gdr at integrable-solutions.net
Mon Dec 22 23:51:10 UTC 2003


Nathan Myers <ncm at cantrip.org> writes:

|   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.  We can presume that any C code that is 
|   cancellation-safe also handles normal error returns sensibly.

only when "academic interest" is the code that are not your production :-)
And if I apply that same definition to my of view, then your codes 
immediately become of academic interest. 

>From a C++ program, how do you indentify a C code?

(The 'extern "C"' is meant to let exception propagate correctly through
C codes and return back to C++ handlers (if nay).  That has always
been part of the linkage specification facility).

| Let's try not to get sidetracked.

Yup.  The above assumption would be a distraction.

-- Gaby



More information about the c++-pthreads mailing list