diff options
| author | Oz Linden <oz@lindenlab.com> | 2013-05-24 09:49:18 -0400 | 
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2013-05-24 09:49:18 -0400 | 
| commit | f66b71262e0ade97134fae8e63fb9323505c3c65 (patch) | |
| tree | 54506a04566c88f05292660b83cc985661785c8c /indra/newview | |
| parent | 0004f418f4716c1d0fc1277b1ea2a7c7ed6689dd (diff) | |
| parent | 3be79d5371c291264b12ecb3bf8daf0761bf1123 (diff) | |
merge changes for maint-2724
Diffstat (limited to 'indra/newview')
| -rwxr-xr-x | indra/newview/app_settings/settings.xml | 11 | ||||
| -rwxr-xr-x | indra/newview/llappviewer.cpp | 12 | 
2 files changed, 23 insertions, 0 deletions
diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 9104ad8512..2d4ae5ea55 100755 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -1905,6 +1905,17 @@        <key>Value</key>        <integer>0</integer>      </map> +    <key>CoroutineStackSize</key> +    <map> +      <key>Comment</key> +      <string>Size (in bytes) for each coroutine stack</string> +      <key>Persist</key> +      <integer>0</integer> +      <key>Type</key> +      <string>S32</string> +      <key>Value</key> +      <integer>262144</integer> +    </map>      <key>CreateToolCopyCenters</key>      <map>        <key>Comment</key> diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index d4484d844f..4fb0ea8052 100755 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -117,6 +117,7 @@  #include "llleap.h"  #include "stringize.h" +#include "llcoros.h"  // Third party library includes  #include <boost/bind.hpp> @@ -756,6 +757,7 @@ bool LLAppViewer::init()  	//set the max heap size.  	initMaxHeapSize() ; +	LLCoros::instance().setStackSize(gSavedSettings.getS32("CoroutineStackSize"));  	LLPrivateMemoryPoolManager::initClass((BOOL)gSavedSettings.getBOOL("MemoryPrivatePoolEnabled"), (U32)gSavedSettings.getU32("MemoryPrivatePoolSize")*1024*1024) ; @@ -2813,6 +2815,16 @@ bool LLAppViewer::initConfiguration()  	loadColorSettings(); +	// Let anyone else who cares know that we've populated our settings +	// variables. +	for (LLControlGroup::key_iter ki(LLControlGroup::beginKeys()), kend(LLControlGroup::endKeys()); +		 ki != kend; ++ki) +	{ +		// For each named instance of LLControlGroup, send an event saying +		// we've initialized an LLControlGroup instance by that name. +		LLEventPumps::instance().obtain("LLControlGroup").post(LLSDMap("init", *ki)); +	} +  	return true; // Config was successful.  }  | 
