void* Thread::_service(void* arg) { ThreadFunctor* threadFunctor = (ThreadFunctor*)arg; void* ret = threadFunctor->f(threadFunctor->arg); pthread_exit(NULL); return ret; }
void* Thread::_service(void* arg) { ThreadFunctor* threadFunctor = static_cast<ThreadFunctor*>(arg); void* ret = threadFunctor->f(threadFunctor->arg); pthread_exit(NULL); delete threadFunctor; return ret; }