diff options
author | Rider Linden <rider@lindenlab.com> | 2015-07-28 16:18:12 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2015-07-28 16:18:12 -0700 |
commit | 6e448739ab8a43b7832525337b0ddba35f622a65 (patch) | |
tree | bb526a92480c2aa07ee39e0907774d8027150321 /indra | |
parent | b57b0d97bb2fb880084cbcca1b915f8e67b442a5 (diff) |
Updated a couple comments.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llcoproceduremanager.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llcoproceduremanager.cpp b/indra/newview/llcoproceduremanager.cpp index e22a8b8013..db01c13079 100644 --- a/indra/newview/llcoproceduremanager.cpp +++ b/indra/newview/llcoproceduremanager.cpp @@ -139,14 +139,14 @@ LLCoprocedureManager::~LLCoprocedureManager() LLCoprocedureManager::poolPtr_t LLCoprocedureManager::initializePool(const std::string &poolName) { - // *TODO: Retrieve the actual number of concurrent coroutines fro gSavedSettings and - // clamp to a "reasonable" number. + // Attempt to look up a pool size in the configuration. If found use that std::string keyName = "PoolSize" + poolName; int size = 5; size = gSavedSettings.getU32(keyName); if (size == 0) - { + { // if not found grab the know default... if there is no known + // default use a reasonable number like 5. std::map<std::string, U32>::iterator it = DefaultPoolSizes.find(poolName); if (it == DefaultPoolSizes.end()) size = DEFAULT_POOL_SIZE; @@ -165,6 +165,8 @@ LLCoprocedureManager::poolPtr_t LLCoprocedureManager::initializePool(const std:: //------------------------------------------------------------------------- LLUUID LLCoprocedureManager::enqueueCoprocedure(const std::string &pool, const std::string &name, CoProcedure_t proc) { + // Attempt to find the pool and enqueue the procedure. If the pool does + // not exist, create it. poolPtr_t targetPool; poolMap_t::iterator it = mPoolMap.find(pool); |