summaryrefslogtreecommitdiff
path: root/indra/llcommon/llcoros.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llcommon/llcoros.h')
-rwxr-xr-xindra/llcommon/llcoros.h35
1 files changed, 15 insertions, 20 deletions
diff --git a/indra/llcommon/llcoros.h b/indra/llcommon/llcoros.h
index e478600f00..3f58a17aa9 100755
--- a/indra/llcommon/llcoros.h
+++ b/indra/llcommon/llcoros.h
@@ -137,6 +137,21 @@ 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);
@@ -151,24 +166,4 @@ 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) */