summaryrefslogtreecommitdiff
path: root/source/libs/asura-lib-utils/threading/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/libs/asura-lib-utils/threading/thread.cpp')
-rw-r--r--source/libs/asura-lib-utils/threading/thread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/libs/asura-lib-utils/threading/thread.cpp b/source/libs/asura-lib-utils/threading/thread.cpp
index 9c71ace..628eee4 100644
--- a/source/libs/asura-lib-utils/threading/thread.cpp
+++ b/source/libs/asura-lib-utils/threading/thread.cpp
@@ -10,7 +10,7 @@ namespace AsuraEngine
namespace Threading
{
- Thread::Thread(Luax::LuaxState& father, const std::string& name)
+ Thread::Thread(ThreadType type, Luax::LuaxState& luaThread, const std::string& name/* = ""*/)
: mName(name)
{
}
@@ -78,7 +78,7 @@ namespace AsuraEngine
void Thread::Process()
{
- LUAX_STATE(AEScripting::LuaEnv::Get()->GetMainState());
+ LUAX_STATE(AEScripting::LuaEnv::Get()->GetMainThread());
while (!mTaskQueue.empty())
{
Task* task = mTaskQueue.front();