[C++-sig] question on boost.python exception mechanisms

Niall Douglas s_sourceforge at nedprod.com
Sun Apr 14 00:37:04 CEST 2013


On 10 Apr 2013 at 13:48, Holger Joukl wrote:

> > If you don't have C++11 in your C++, Boost provides an okay partial
> > implementation of C++11 exception support.
> 
> I'll look into this. This would then mean instrumenting some object with a
> place
> to store the caught exception to re-raise upon reentry from C to C++.
> I take it this would then do much the same as my approach sketched above
> but
> "safer and sounder".

There is always the trick of keeping a hash table keyed on thread id 
and call function depth. In fact it could even be made lock free and 
wait free with Boost v1.53's new lock and wait free queue 
implementations.

Niall

-- 
Any opinions or advice expressed here do NOT reflect those
of my employer BlackBerry Inc.
Work Portfolio: http://careers.stackoverflow.com/nialldouglas/



-------------- next part --------------
A non-text attachment was scrubbed...
Name: SMime.p7s
Type: application/x-pkcs7-signature
Size: 6061 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20130413/7694d929/attachment.bin>


More information about the Cplusplus-sig mailing list