Boost logo

Boost :

From: williamkempf_at_[hidden]
Date: 2001-08-03 16:43:05

--- In boost_at_y..., "Scott McCaskill" <scott_at_m...> wrote:
> I believe that pthreads-win32 tried something like this (using
exceptions to
> implement thread cancellation), and as a result they have this in
> #pragma message("When compiling applications with MSVC++ and C++
> handling:")
> #pragma message(" Replace any 'catch( ... )' with 'PtW32CatchAll'
> threads")
> #pragma message(" if you want POSIX thread cancelation and
pthread_exit to
> work.")
> #define PtW32CatchAll \
> catch( ptw32_exception & ) { throw; } \
> catch( ... )
> This means that if you want cancellation to work reliably, your
thread can't
> execute any code that you don't have the source for unless you can
> be sure that it never uses catch(...). For a general purpose
library, this
> is at best very kludgy.

Amen. And that ignoring the bigger issues.

Bill Kempf

Boost list run by bdawes at, gregod at, cpdaniel at, john at