| 1987 | |
| 1988 | |
| 1989 | LUA_API lua_State *lua_newthread (lua_State *L) { |
| 1990 | lua_State *L1; |
| 1991 | lua_lock(L); |
| 1992 | luaC_checkGC(L); |
| 1993 | L1 = luaE_newthread(L); |
| 1994 | setthvalue(L, L->top, L1); |
| 1995 | api_incr_top(L); |
| 1996 | lua_unlock(L); |
| 1997 | luai_userstatethread(L, L1); |
| 1998 | return L1; |
| 1999 | } |
| 2000 | |
| 2001 | |
| 2002 |
no test coverage detected