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

Observer as task_scheduler_init param

jogshy
New Contributor I
268 Views
A question... why is not the task_scheduler_observer passed as a parameter of the task_scheduler_init?
Why not to put it in this way:

MyObserver o;
task_scheduler_init init;
init.SetObserver(&o);

Other question: can I have several observers running on the task scheduler? Can I have several task schedulers? Are they singletons?

thx
0 Kudos
0 Replies
Reply