Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Public Attributes
Support::ThreadPool::ThreadPoolManager Struct Reference

#include <ThreadPool.h>

List of all members.

Public Member Functions

void operator() ()
 ThreadPoolManager (ThreadPool &threadPool)

Public Attributes

ThreadPool_threadPool
boost::xtime _waitTime

Detailed Description

Performs management of the thread pool using a separate thread

Definition at line 75 of file Support/Include/ThreadPool.h.


Constructor & Destructor Documentation

Support::ThreadPool::ThreadPoolManager::ThreadPoolManager ( ThreadPool threadPool) [inline]

Definition at line 80 of file Support/Include/ThreadPool.h.

References _waitTime, and ManagerWaitTimeInSeconds.


Member Function Documentation

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);
        }
    }

Member Data Documentation

Definition at line 77 of file Support/Include/ThreadPool.h.

Definition at line 78 of file Support/Include/ThreadPool.h.

Referenced by ThreadPoolManager().


The documentation for this struct was generated from the following files:

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net