MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / thread_routine

Method thread_routine

benchmarks/tbb/private_server.cpp:217–228  ·  view source on GitHub ↗

ensure that stack is properly aligned for TBB threads

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

runMethod · 0.95

Tested by

no test coverage detected