| 351 | } |
| 352 | |
| 353 | void MoveThreadIntoProcessorGroup( void* hThread, int groupIndex ) { |
| 354 | __TBB_ASSERT( hardware_concurrency_info == initialization_complete, "MoveThreadIntoProcessorGroup is used before AvailableHwConcurrency" ); |
| 355 | if ( !TBB_SetThreadGroupAffinity ) |
| 356 | return; |
| 357 | TBB_GROUP_AFFINITY ga = { theProcessorGroups[groupIndex].mask, (WORD)groupIndex, {0,0,0} }; |
| 358 | TBB_SetThreadGroupAffinity( hThread, &ga, NULL ); |
| 359 | } |
| 360 | |
| 361 | #else |
| 362 | #error AvailableHwConcurrency is not implemented in this OS |
nothing calls this directly
no outgoing calls
no test coverage detected