summaryrefslogtreecommitdiff
path: root/source/libs/asura-lib-utils/threading/coroutine.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-03-28 08:56:15 +0800
committerchai <chaifix@163.com>2019-03-28 08:56:15 +0800
commit3bced067a4144381e59ce4bd0eb749eeff5ad1f4 (patch)
tree0352c8ae263dae904967f9e21326ce2a4ca9ada8 /source/libs/asura-lib-utils/threading/coroutine.h
parentf6bcacef6e10200b1c0dc34c4aa34313cbfc0392 (diff)
*misc
Diffstat (limited to 'source/libs/asura-lib-utils/threading/coroutine.h')
-rw-r--r--source/libs/asura-lib-utils/threading/coroutine.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/libs/asura-lib-utils/threading/coroutine.h b/source/libs/asura-lib-utils/threading/coroutine.h
index 75d9a10..01af654 100644
--- a/source/libs/asura-lib-utils/threading/coroutine.h
+++ b/source/libs/asura-lib-utils/threading/coroutine.h
@@ -1,7 +1,7 @@
#ifndef __ASURA_COROUTINE_H__
#define __ASURA_COROUTINE_H__
-#include <asura-lib-utils/scripting/portable.hpp>
+#include "../scripting/portable.hpp"
namespace AsuraEngine
{
@@ -18,8 +18,15 @@ namespace AsuraEngine
LUAX_DECL_FACTORY(Coroutine);
+
+
private:
+ ///
+ /// ǰЭ̵state
+ ///
+ lua_State* mThreadState;
+
LUAX_DECL_METHOD(_New);
LUAX_DECL_METHOD(_Run);