Observer as task_scheduler_init param

Observer as task_scheduler_init param

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;

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


1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.