summaryrefslogtreecommitdiff
path: root/source/3rd-party/Luax/luax_runtime.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-03-29 00:43:25 +0800
committerchai <chaifix@163.com>2019-03-29 00:43:25 +0800
commitf4c338c63f3456a8eccd56c35e233843687d55be (patch)
tree7278fe4723320c9ef310c5a04d92bf0be1bc778c /source/3rd-party/Luax/luax_runtime.h
parent3bced067a4144381e59ce4bd0eb749eeff5ad1f4 (diff)
*thread
Diffstat (limited to 'source/3rd-party/Luax/luax_runtime.h')
-rw-r--r--source/3rd-party/Luax/luax_runtime.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/source/3rd-party/Luax/luax_runtime.h b/source/3rd-party/Luax/luax_runtime.h
index 1234627..27c9af4 100644
--- a/source/3rd-party/Luax/luax_runtime.h
+++ b/source/3rd-party/Luax/luax_runtime.h
@@ -6,7 +6,7 @@
#include "luax_ref.h"
#include "luax_config.h"
#include "luax_state.h"
-#include "luax_context.h"
+#include "luax_vm.h"
namespace Luax
{
@@ -21,10 +21,15 @@ namespace Luax
static LuaxRuntime& Get();
///
- /// һµlua_Stateصlua_State*һ8\4ֽڵkey
+ /// һµluaʹ̲߳صlua_State*һ8\4ֽڵkey
///
lua_State* Open();
-
+/*
+ ///
+ /// ̴߳һ̡߳ӵcontextӳ䡣ҪΪ˷context߳ʡ
+ ///
+ lua_State* CreateThread(lua_State* mainThread);
+*/
///
/// رlua_Stateruntimeɾ
///
@@ -35,7 +40,7 @@ namespace Luax
LuaxRefTable& GetStrongRefTable(lua_State* L);
LuaxRefTable& GetWeaksRefTable(lua_State* L);
- LuaxContext& operator[](lua_State* L);
+ LuaxVM& operator[](lua_State* L);
private:
@@ -47,7 +52,7 @@ namespace Luax
///
/// lua_State handlecontextӳ
///
- std::map<lua_State*, LuaxContext> mContexts;
+ std::map<lua_State*, LuaxVM*> mContexts;
};