Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

I am looking for an exception example

aftershock4
Beginner
216 Views
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-Kukanov
Employee
216 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.
0 Kudos
Reply