diff options
author | simon <none@none> | 2013-05-29 14:42:19 -0700 |
---|---|---|
committer | simon <none@none> | 2013-05-29 14:42:19 -0700 |
commit | 507ce0d84fc3e7717c7c9ae58dcdae7785936f65 (patch) | |
tree | a7dde82693b2297a27024a00624c1ec9f81c2d0c /indra/llcommon/llcoros.h | |
parent | 473474b94969799d2835191072c5bca1b7d431d8 (diff) | |
parent | 3698aece0d2b396b55b46189e8ea7ee02da9483b (diff) |
Merge downstream code
Diffstat (limited to 'indra/llcommon/llcoros.h')
-rwxr-xr-x | indra/llcommon/llcoros.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llcommon/llcoros.h b/indra/llcommon/llcoros.h index 03df406b68..01ee11da1a 100755 --- a/indra/llcommon/llcoros.h +++ b/indra/llcommon/llcoros.h @@ -125,7 +125,7 @@ public: template <typename CALLABLE> std::string launch(const std::string& prefix, const CALLABLE& callable) { - return launchImpl(prefix, new coro(callable)); + return launchImpl(prefix, new coro(callable, mStackSize)); } /** @@ -152,6 +152,9 @@ public: /// getName() by self.get_id() std::string getNameByID(const void* self_id) const; + /// for delayed initialization + void setStackSize(S32 stacksize); + private: friend class LLSingleton<LLCoros>; LLCoros(); @@ -159,6 +162,7 @@ private: std::string generateDistinctName(const std::string& prefix) const; bool cleanup(const LLSD&); + S32 mStackSize; typedef boost::ptr_map<std::string, coro> CoroMap; CoroMap mCoros; }; |