I am looking for an exception example

I am looking for an exception example

Hi,

Could someone write an example how to handle an exception in tbb?

I mean let me suppose and an exception is generated inside parallel_for.
E.g. throw "fatal error";
How could someone pass it out so it can be caught outside the parallel_for?
I have not seen an example for that.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

There is a couple of examples in "What's new in TBB 2.1" presentation. Download "Oscon_Voss_2008_final.ppt" from http://threadingbuildingblocks.org -> Downloads -> Extras -> Oscon 2008 Presentations.

Login to leave a comment.