Ejemplo n.º 1
0
void* Thread::_service(void* arg)
{
	ThreadFunctor* threadFunctor = (ThreadFunctor*)arg;
	void* ret = threadFunctor->f(threadFunctor->arg);
	pthread_exit(NULL);
	return ret;
}
Ejemplo n.º 2
0
void* Thread::_service(void* arg)
{
	ThreadFunctor* threadFunctor  = static_cast<ThreadFunctor*>(arg);
	void* ret = threadFunctor->f(threadFunctor->arg);
	pthread_exit(NULL);
	delete threadFunctor;
	return ret;
}