//============================================================================== void Thread::threadEntryPoint() { if (!threadName.empty ()) setCurrentThreadName (threadName); if (startSuspensionEvent.wait (10000)) run(); closeThreadHandle(); }
void Thread::threadEntryPoint() { const CurrentThreadHolder::Ptr currentThreadHolder (getCurrentThreadHolder()); currentThreadHolder->value = this; if (threadName.isNotEmpty()) setCurrentThreadName (threadName); if (startSuspensionEvent.wait (10000)) { bassert (getCurrentThreadId() == threadId); if (affinityMask != 0) setCurrentThreadAffinityMask (affinityMask); run(); } currentThreadHolder->value.releaseCurrentThreadStorage(); closeThreadHandle(); }