Community
cancel
Showing results for 
Search instead for 
Did you mean: 
craig06y
Beginner
67 Views

Multiple task_scheduler_init instances

I'm trying to use TBB in a plug-in for a closed-source app (Autodesk Maya) which itself uses TBB. When I create a task_scheduler_init and specify the thread count (only to check what happens to performance with different values), it doesn't seem to have any effect. I'm guessing this is because the host app has already created a scheduler. Is there a way to have my local scheduler instance temporarily override the other one, or discover the other scheduler instance (so I can terminate and later re-initialize it)?

Thank you.
0 Kudos
2 Replies
AJ13
New Contributor I
67 Views

Quoting - craig06y
I'm trying to use TBB in a plug-in for a closed-source app (Autodesk Maya) which itself uses TBB. When I create a task_scheduler_init and specify the thread count (only to check what happens to performance with different values), it doesn't seem to have any effect. I'm guessing this is because the host app has already created a scheduler. Is there a way to have my local scheduler instance temporarily override the other one, or discover the other scheduler instance (so I can terminate and later re-initialize it)?

Thank you.

Can you be more specific on "it doesn't seem to have any effect". What did you do / try? How do you know?
turks
Beginner
67 Views

Quoting - AJ

Can you be more specific on "it doesn't seem to have any effect". What did you do / try? How do you know?
First Task Scheduler determines number of threads and cannot be changed by subsequent instances of the scheduler.