SL-13783 Workaround for enqueueCoprocedure() crash #2
parent
fa0cc7b6d2
commit
58ba75f6dd
|
|
@ -140,12 +140,6 @@ LLCoprocedureManager::~LLCoprocedureManager()
|
|||
close();
|
||||
}
|
||||
|
||||
void LLCoprocedureManager::initSingleton()
|
||||
{
|
||||
// workaround until we get mutex into initializePool
|
||||
initializePool("VAssetStorage");
|
||||
}
|
||||
|
||||
LLCoprocedureManager::poolPtr_t LLCoprocedureManager::initializePool(const std::string &poolName)
|
||||
{
|
||||
// Attempt to look up a pool size in the configuration. If found use that
|
||||
|
|
@ -197,8 +191,13 @@ LLUUID LLCoprocedureManager::enqueueCoprocedure(const std::string &pool, const s
|
|||
|
||||
void LLCoprocedureManager::setPropertyMethods(SettingQuery_t queryfn, SettingUpdate_t updatefn)
|
||||
{
|
||||
// functions to discover and store the pool sizes
|
||||
mPropertyQueryFn = queryfn;
|
||||
mPropertyDefineFn = updatefn;
|
||||
|
||||
// workaround until we get mutex into initializePool
|
||||
initializePool("VAssetStorage");
|
||||
initializePool("Upload");
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@ class LLCoprocedureManager : public LLSingleton < LLCoprocedureManager >
|
|||
{
|
||||
LLSINGLETON(LLCoprocedureManager);
|
||||
virtual ~LLCoprocedureManager();
|
||||
/*virtual*/ void initSingleton();
|
||||
|
||||
public:
|
||||
typedef boost::function<U32(const std::string &)> SettingQuery_t;
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@
|
|||
/// LLViewerAssetRequest
|
||||
///----------------------------------------------------------------------------
|
||||
|
||||
// There is also PoolSizeVAssetStorage value in setting that should mirror this name
|
||||
static const std::string VIEWER_ASSET_STORAGE_CORO_POOL = "VAssetStorage";
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue