Peroperly use the maxThreads specified in a TCPServerParameters to have the TCPServerDispatcher create a Threadpool with the correct capacity.

This commit is contained in:
karlr42
2014-03-06 19:44:54 +00:00
parent 715a09ff47
commit b509b7e91a
6 changed files with 43 additions and 2 deletions

View File

@@ -197,6 +197,13 @@ int TCPServerDispatcher::currentThreads() const
return _currentThreads;
}
int TCPServerDispatcher::maxThreads() const
{
FastMutex::ScopedLock lock(_mutex);
return _threadPool.capacity();
}
int TCPServerDispatcher::totalConnections() const
{