Skip to content
Snippets Groups Projects
Commit 746ff8f4 authored by Ansariel's avatar Ansariel Committed by Rye Mutt
Browse files

Attempt to fix the VAAssetStorage pool creation issue

parent 684342ee
No related branches found
No related tags found
No related merge requests found
...@@ -272,6 +272,17 @@ void LLCoprocedureManager::close(const std::string &pool) ...@@ -272,6 +272,17 @@ void LLCoprocedureManager::close(const std::string &pool)
} }
} }
// <FS:Ansariel> Explicitly create the VAAssetStorage pool
void LLCoprocedureManager::createPool(const std::string& poolName)
{
poolMap_t::iterator it = mPoolMap.find(poolName);
if (it == mPoolMap.end())
{
initializePool(poolName);
}
}
// </FS:Ansariel> Explicitly create the VAAssetStorage pool
//========================================================================= //=========================================================================
LLCoprocedurePool::LLCoprocedurePool(const std::string &poolName, size_t size): LLCoprocedurePool::LLCoprocedurePool(const std::string &poolName, size_t size):
mPoolName(poolName), mPoolName(poolName),
......
...@@ -79,6 +79,8 @@ class LLCoprocedureManager final : public LLSingleton < LLCoprocedureManager > ...@@ -79,6 +79,8 @@ class LLCoprocedureManager final : public LLSingleton < LLCoprocedureManager >
void close(); void close();
void close(const std::string &pool); void close(const std::string &pool);
void createPool(const std::string& poolName); // <FS:Ansariel> Explicitly create the VAAssetStorage pool
private: private:
......
...@@ -114,6 +114,8 @@ LLViewerAssetStorage::LLViewerAssetStorage(LLMessageSystem *msg, LLXferManager * ...@@ -114,6 +114,8 @@ LLViewerAssetStorage::LLViewerAssetStorage(LLMessageSystem *msg, LLXferManager *
mCountSucceeded(0), mCountSucceeded(0),
mTotalBytesFetched(0) mTotalBytesFetched(0)
{ {
// <FS:Ansariel> Explicitly create the VAAssetStorage pool
LLCoprocedureManager::instance().createPool(VIEWER_ASSET_STORAGE_CORO_POOL);
} }
...@@ -127,6 +129,8 @@ LLViewerAssetStorage::LLViewerAssetStorage(LLMessageSystem *msg, LLXferManager * ...@@ -127,6 +129,8 @@ LLViewerAssetStorage::LLViewerAssetStorage(LLMessageSystem *msg, LLXferManager *
mCountSucceeded(0), mCountSucceeded(0),
mTotalBytesFetched(0) mTotalBytesFetched(0)
{ {
// <FS:Ansariel> Explicitly create the VAAssetStorage pool
LLCoprocedureManager::instance().createPool(VIEWER_ASSET_STORAGE_CORO_POOL);
} }
LLViewerAssetStorage::~LLViewerAssetStorage() LLViewerAssetStorage::~LLViewerAssetStorage()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment