summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/Threads/ThreadEx.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/modules/asura-core/Threads/ThreadEx.h')
-rw-r--r--source/modules/asura-core/Threads/ThreadEx.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/source/modules/asura-core/Threads/ThreadEx.h b/source/modules/asura-core/Threads/ThreadEx.h
new file mode 100644
index 0000000..53600a6
--- /dev/null
+++ b/source/modules/asura-core/Threads/ThreadEx.h
@@ -0,0 +1,45 @@
+#ifndef _ASURA_THREAD_EX_H_
+#define _ASURA_THREAD_EX_H_
+
+#include <asura-utils/Scripting/Portable.hpp>
+#include <asura-utils/Threads/Thread.h>
+
+namespace_begin(AsuraEngine)
+namespace_begin(Threads)
+
+///
+/// ThreadExеͬͨ˶ͨݡ
+///
+class ThreadEx ASURA_FINAL
+ : public AEScripting::Portable<ThreadEx>
+ , public Threadable
+{
+public:
+
+ LUAX_DECL_FACTORY(ThreadEx);
+
+ ThreadEx();
+ ~ThreadEx();
+
+ int Process() override;
+
+private:
+
+ // ̵߳עAsuraͽӿڣעֻһֶ֮䴫ݡЩ͵Ķ
+ void RegisterModules();
+
+ ThreadImpl* m_Impl;
+
+ // ̴߳
+ Luax::LuaxVM* m_VM;
+
+luaxport:
+
+ LUAX_DECL_METHOD(_New);
+
+};
+
+namespace_end
+namespace_end
+
+#endif \ No newline at end of file