Skip to main content

close_thread

Function close_thread 

Source
pub fn close_thread(state: &mut LuaState, from: Option<&LuaState>) -> i32
Expand description

Close a coroutine thread from the perspective of another thread.


//   int status;
//   lua_lock(L);
//   L->nCcalls = (from) ? getCcalls(from) : 0;
//   status = luaE_resetthread(L, L->status);
//   lua_unlock(L);
//   return status;
// }