summaryrefslogtreecommitdiff
path: root/indra/llcommon/llcoros.h
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2015-07-04 19:58:43 -0400
committerNat Goodspeed <nat@lindenlab.com>2015-07-04 19:58:43 -0400
commit50a97cd15a4c290bd26729f2c8a498bb1d0178d8 (patch)
tree247365c2de7ccd0bc70a39b6a70112ac881988c5 /indra/llcommon/llcoros.h
parent99aa00293b1d79eb47cfe2caa85a5740a2959297 (diff)
parent1d2514956f15f780aaead9bc123c1353a5b7fd20 (diff)
Automated merge with ssh://bitbucket.org/rider_linden/maint-4952-v-t-u
Diffstat (limited to 'indra/llcommon/llcoros.h')
-rwxr-xr-xindra/llcommon/llcoros.h35
1 files changed, 20 insertions, 15 deletions
diff --git a/indra/llcommon/llcoros.h b/indra/llcommon/llcoros.h
index 3f58a17aa9..e478600f00 100755
--- a/indra/llcommon/llcoros.h
+++ b/indra/llcommon/llcoros.h
@@ -137,21 +137,6 @@ public:
*/
std::string getName() const;
- /// get the current coro::self& for those who really really care
- static coro::self& get_self();
-
- /// Instantiate one of these in a block surrounding any leaf point when
- /// control literally switches away from this coroutine.
- class Suspending
- {
- public:
- Suspending();
- ~Suspending();
-
- private:
- coro::self* mSuspended;
- };
-
/// for delayed initialization
void setStackSize(S32 stacksize);
@@ -166,4 +151,24 @@ private:
CoroMap mCoros;
};
+namespace llcoro
+{
+
+/// get the current coro::self& for those who really really care
+LLCoros::coro::self& get_self();
+
+/// Instantiate one of these in a block surrounding any leaf point when
+/// control literally switches away from this coroutine.
+class Suspending
+{
+public:
+ Suspending();
+ ~Suspending();
+
+private:
+ LLCoros::coro::self* mSuspended;
+};
+
+} // namespace llcoro
+
#endif /* ! defined(LL_LLCOROS_H) */