Exemple #1
0
void* Thread::_service(void* arg)
{
	ThreadFunctor* threadFunctor = (ThreadFunctor*)arg;
	void* ret = threadFunctor->f(threadFunctor->arg);
	pthread_exit(NULL);
	return ret;
}
Exemple #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;
}