10 : mIsRealtime(argIsRealtime)
12 for (
int counter = 0; counter < argInitialNumberOfThreads; counter++)
27 for (
int counter = 0; counter < busyThreads.size(); counter++)
30 if (threadPtr !=
NULL)
40 for (
int counter = 0; counter < idleThreads.size(); counter++)
44 if (threadPtr !=
NULL)
57 if (idleThreads.size() == 0)
60 bool foundIdleThread =
false;
61 std::deque<PooledThread*>::iterator iter;
62 for (iter = busyThreads.begin(); iter < busyThreads.end(); iter++)
67 busyThreads.erase(iter);
68 idleThreads.push_back(threadPtr);
69 foundIdleThread =
true;
73 if ( !foundIdleThread )
80 idleThreads.pop_front();
81 busyThreads.push_back(threadPtr);
90 std::deque<PooledThread*>::iterator iter = find ( busyThreads.begin(), busyThreads.end(), argThreadPtr );
91 busyThreads.erase( iter);
93 idleThreads.push_back( argThreadPtr );