----------------------------------------------------------------------------- Entry point for running a function on this thread -----------------------------------------------------------------------------
| 156 | // Entry point for running a function on this thread |
| 157 | //----------------------------------------------------------------------------- |
| 158 | void *ThreadImpl::ThreadProc |
| 159 | ( |
| 160 | void* _pArg |
| 161 | ) |
| 162 | { |
| 163 | ThreadImpl* pImpl = (ThreadImpl*)_pArg; |
| 164 | //fprintf(stderr, "thread %s run begin %08x running %d\n", pImpl->m_name.c_str(), pImpl->m_hThread, pImpl->m_bIsRunning ); |
| 165 | //fflush(stderr); |
| 166 | pImpl->Run(); |
| 167 | //fprintf(stderr, "thread %s run end %08x running %d\n", pImpl->m_name.c_str(), pImpl->m_hThread, pImpl->m_bIsRunning ); |
| 168 | //fflush(stderr); |
| 169 | return 0; |
| 170 | } |
| 171 | |
| 172 | //----------------------------------------------------------------------------- |
| 173 | // <ThreadImpl::Run> |