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

TBB thread initialization

andysem
New Contributor III
745 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
745 Views

Have a look at task_scheduler_observer.

View solution in original post

0 Kudos
2 Replies
RafSchietekat
Black Belt
746 Views

Have a look at task_scheduler_observer.

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