ensure that stack is properly aligned for TBB threads
| 215 | #if __MINGW32__ && __GNUC__==4 &&__GNUC_MINOR__>=2 && !__MINGW64__ |
| 216 | // ensure that stack is properly aligned for TBB threads |
| 217 | __attribute__((force_align_arg_pointer)) |
| 218 | #endif |
| 219 | __RML_DECL_THREAD_ROUTINE private_worker::thread_routine( void* arg ) { |
| 220 | private_worker* self = static_cast<private_worker*>(arg); |
| 221 | AVOID_64K_ALIASING( self->my_index ); |
| 222 | #if _XBOX |
| 223 | int HWThreadIndex = __TBB_XBOX360_GetHardwareThreadIndex(i); |
| 224 | XSetThreadProcessor(GetCurrentThread(), HWThreadIndex); |
| 225 | #endif |
| 226 | self->run(); |
| 227 | return 0; |
| 228 | } |
| 229 | #if _MSC_VER && !defined(__INTEL_COMPILER) |
| 230 | #pragma warning(pop) |
| 231 | #endif |
nothing calls this directly
no test coverage detected