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.

TBB thread initialization

andysem
New Contributor III
152 Views
Is there a way to provide initialization and deinitialization code for the threads TBB creates? For instance, I'd like to run TBB tasks with COM context initialized, but that's not the only thing I'd like to have. Perhaps, there is a way to "provide" properly initialized threads to TBB scheduler somehow?

0 Kudos
1 Solution
RafSchietekat
Black Belt
152 Views

Have a look at task_scheduler_observer.

View solution in original post

2 Replies
RafSchietekat
Black Belt
153 Views

Have a look at task_scheduler_observer.

andysem
New Contributor III
152 Views
Thanks, looks like it's what I need.
Reply