diff options
Diffstat (limited to 'Runner/Scripting/luax_vm.h')
-rw-r--r-- | Runner/Scripting/luax_vm.h | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/Runner/Scripting/luax_vm.h b/Runner/Scripting/luax_vm.h deleted file mode 100644 index 3eda3f8..0000000 --- a/Runner/Scripting/luax_vm.h +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef __LUAX_CONTEXT_H__ -#define __LUAX_CONTEXT_H__ - -#include <map> -#include <unordered_set> - -#include "luax_ref.h" -#include "luax_config.h" -#include "luax_state.h" -#include "luax_globalstate.h" - -namespace Luax -{ - - /// - /// ����lua_state��ص�context����һϵ�д����ļ��ϣ�����Ҳû��ϵ����Ҫ��Ϊ�˽�Լ�ڴ档 - /// - class LuaxVM - { - public: - - /// - /// ����global_State�õ�������� - /// - static LuaxVM* TryGetVM(global_State* gState); - static LuaxVM* TryGetVM(lua_State* state); - - LuaxVM(); - ~LuaxVM(); - - /// - /// �������������Ҫ�ֶ�����Setup��������ʼ��һЩ�����״̬�� - /// - void Setup(); - - lua_State* GetMainThread(); - lua_State* CreateThread(); - LuaxState GetMainState(); - - LuaxRefTable& GetStrongRefTable(); - LuaxRefTable& GetWeakRefTable(); - - private: - - typedef std::map<global_State*, LuaxVM*> VMap; - - static VMap VMs; // ͨ��global_State�����������Ϊ�˷��� - - LuaxRefTable mStrongRefTable; // _LUAX_STRONGREF_TABLE - LuaxRefTable mWeakRefTable; // _LUAX_WEAKREF_TABLE - - global_State* mGlobalState; // �������global_State���ɵ�ǰ������������̹߳��� - lua_State* mMainThread; // ���߳� - -#if LUAX_PROFILER - size_t mObjectCount; // ͳ�������ڴ�������д�����ʵ�� -#endif - - }; - -} - -#endif
\ No newline at end of file |