void* worker(void* arg){ MThread* threadObj = (MThread*)arg; threadObj->run(); threadObj->threadId = 0; return NULL; }