Searched refs:mainthread (Results 1 – 10 of 10) sorted by relevance
107 u->uv.next = G(L)->mainthread->next; in luaS_newudata()108 G(L)->mainthread->next = obj2gco(u); in luaS_newudata()
131 GCObject **p = &g->mainthread->next; in luaC_separateudata()385 lua_assert(gco2th(o) != L && gco2th(o) != G(L)->mainthread); in freeobj()455 udata->uv.next = g->mainthread->next; /* return it to `root' list */ in GCTM()456 g->mainthread->next = o; in GCTM()506 markobject(g, g->mainthread); in markroot()508 markvalue(g, gt(g->mainthread)); in markroot()535 lua_assert(!iswhite(obj2gco(g->mainthread))); in atomic()
159 g->mainthread = L; in lua_newstate()200 L = G(L)->mainthread; /* only the main thread can be closed */ in lua_close()
90 struct lua_State *mainthread; member
524 return (G(L)->mainthread == L); in lua_pushthread()
280 g->mainthread = L; in lua_newstate()316 L = G(L)->mainthread; /* only the main thread can be closed */ in lua_close()
179 if (G(L)->mainthread->errorJmp) { /* main thread has a handler? */ in luaD_throw()180 setobjs2s(L, G(L)->mainthread->top++, L->top - 1); /* copy error obj. */ in luaD_throw()181 luaD_throw(G(L)->mainthread, errcode); /* re-throw in main thread */ in luaD_throw()648 if (L != G(L)->mainthread) in lua_yieldk()
144 struct lua_State *mainthread; member
339 markobject(g, g->mainthread); in restartcollection()1002 lua_assert(!iswhite(obj2gco(g->mainthread))); in atomic()1093 GCObject *mt = obj2gco(g->mainthread); in singlestep()
595 return (G(L)->mainthread == L); in lua_pushthread()