void* CG_CALLBACK IThread::ThreadFunction(void* pParam) { IThread* pThis = (IThread*)pParam; return (void*)pThis->Run(); }
static void * Worker(void * data) { IThread * ptr = (IThread* ) data; ptr->Run(); return NULL; }