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