MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / createThread

Method createThread

source/core/StarLua.cpp:506–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504}
505
506LuaThread 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
513void LuaEngine::threadPushFunction(int threadIndex, int functionIndex) {
514 lua_State* thread = lua_tothread(m_handleThread, threadIndex);

Callers 2

nodeLuaThreadMethod · 0.80
TESTFunction · 0.80

Calls 4

lua_checkstackFunction · 0.85
lua_newthreadFunction · 0.85
LuaThreadClass · 0.85
LuaHandleClass · 0.85

Tested by 1

TESTFunction · 0.64