inline CPalThread *InternalGetCurrentThread() { CPalThread *pThread = reinterpret_cast<CPalThread*>(pthread_getspecific(thObjKey)); #if defined(FEATURE_PAL_SXS) && defined(_DEBUG) if (pThread) pThread->CheckGuard(); #endif // FEATURE_PAL_SXS && _DEBUG return pThread; }