![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
#include <ThreadPool.h>
Public Member Functions | |
| void | operator() () |
| ThreadPoolManager (ThreadPool &threadPool) | |
Public Attributes | |
| ThreadPool & | _threadPool |
| boost::xtime | _waitTime |
Performs management of the thread pool using a separate thread
Definition at line 75 of file Support/Include/ThreadPool.h.
| Support::ThreadPool::ThreadPoolManager::ThreadPoolManager | ( | ThreadPool & | threadPool | ) | [inline] |
Definition at line 80 of file Support/Include/ThreadPool.h.
References _waitTime, and ManagerWaitTimeInSeconds.
: _threadPool(threadPool) { _waitTime.sec = ManagerWaitTimeInSeconds; }
| void Support::ThreadPool::ThreadPoolManager::operator() | ( | ) |
Implements the work done by a manager thread in the pool This causes the thread to sit in a loop and grow the pool as necessary
Definition at line 35 of file ThreadPool.cpp.
{
while(true)
{
_threadPool.checkGrowPool();
boost::thread::sleep(_waitTime);
}
}
Definition at line 77 of file Support/Include/ThreadPool.h.
| boost::xtime Support::ThreadPool::ThreadPoolManager::_waitTime |
Definition at line 78 of file Support/Include/ThreadPool.h.
Referenced by ThreadPoolManager().
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.