| 504 | } |
| 505 | |
| 506 | LuaThread LuaEngine::createThread() { |
| 507 | lua_checkstack(m_state, 1); |
| 508 | |
| 509 | lua_newthread(m_state); |
| 510 | return LuaThread(LuaDetail::LuaHandle(RefPtr<LuaEngine>(this), popHandle(m_state))); |
| 511 | } |
| 512 | |
| 513 | void LuaEngine::threadPushFunction(int threadIndex, int functionIndex) { |
| 514 | lua_State* thread = lua_tothread(m_handleThread, threadIndex); |