Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

I am looking for an exception example

aftershock4
Beginner
108 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_K_Intel3
Employee
108 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