void MySqlThreadResPool::DoTask( FvWorkerThread::ITask& task,
		MySqlThreadData& threadData )
{
	if (!threadData.m_kConnection.HasFatalError())
	{
		if (this->IsMainThreadData( threadData ))
		{
			FvWorkerThreadPool::DoTaskInCurrentThread( task );
		}
		else
		{
			FV_VERIFY( ThreadPool().DoTask( task ) );
		}
	}
	else
	{
		task.OnRunComplete();
	}
}
Exemplo n.º 2
0
ThreadPool::ThreadPool() 
{
	ThreadPool(2);
}