| 54 | #endif /* __TBB_TASK_GROUP_CONTEXT */ |
| 55 | |
| 56 | void Scheduler_OneTimeInitialization ( bool itt_present ) { |
| 57 | AllocateSchedulerPtr = itt_present ? &custom_scheduler<DefaultSchedulerTraits>::allocate_scheduler : |
| 58 | &custom_scheduler<IntelSchedulerTraits>::allocate_scheduler; |
| 59 | #if __TBB_TASK_GROUP_CONTEXT |
| 60 | // There must be no tasks belonging to this fake task group. Mark invalid for the assert |
| 61 | __TBB_ASSERT(!(task_group_context::low_unused_state_bit & (task_group_context::low_unused_state_bit-1)), NULL); |
| 62 | the_dummy_context.my_state = task_group_context::low_unused_state_bit; |
| 63 | #if __TBB_TASK_PRIORITY |
| 64 | // It should never prevent tasks from being passed to execution. |
| 65 | the_dummy_context.my_priority = num_priority_levels - 1; |
| 66 | #endif /* __TBB_TASK_PRIORITY */ |
| 67 | #endif /* __TBB_TASK_GROUP_CONTEXT */ |
| 68 | } |
| 69 | |
| 70 | //------------------------------------------------------------------------ |
| 71 | // scheduler interface |
no outgoing calls
no test coverage detected