void* CThread::StartRoutine(void* arg) #endif { CThread* pThread = (CThread*)arg; pThread->OnThreadRun(); #ifdef _WIN32 return 0; #else return NULL; #endif }
void* CThread::ThreadCallback(void *arg) { CThread *thread = static_cast<CThread*>(arg); thread->OnThreadRun(); pthread_exit(NULL); return NULL; }