Community
cancel
Showing results for 
Search instead for 
Did you mean: 
aftershock4
Beginner
45 Views

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.




0 Kudos
1 Reply
Alexey_K_Intel3
Employee
45 Views

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.
Reply