Hi~
I am trying to added a structure to group the tasks according to their affinity_id.
However, the allocate_task() in the task.cpp set all tasks' affinity_id to zero.
I am wondering where all tasks' affinity_id has been set and then I could maintain the affinity information with my structure.
Another question is, why the get_task() in the task.cpp does not search the task with the same affinity_id first?
I am really confused about how the TBB task scheduler taking care of the task affinity issue.
Maybe there is some document or other resources could help me understanding how the mechanism works?
Any help would be grateful!
Thanks
Dennis