Home
last modified time | relevance | path

Searched refs:mainthread (Results 1 – 12 of 12) sorted by relevance

/freebsd/contrib/netbsd-tests/lib/libpthread/
H A Dt_kill.c77 pthread_t mainthread; variable
86 ATF_REQUIRE_MSG((self != mainthread) && (signo == SIGUSR1), in sighandler()
120 mainthread = pthread_self(); in ATF_TC_BODY()
131 ATF_REQUIRE_EQ_MSG(self, mainthread, "thread id changed"); in ATF_TC_BODY()
/freebsd/contrib/lua/src/
H A Dlstate.c304 memcpy(lua_getextraspace(L1), lua_getextraspace(g->mainthread), in lua_newthread()
379 g->mainthread = L; in lua_newstate()
418 L = G(L)->mainthread; /* only the main thread can be closed */ in lua_close()
H A Dldo.c123 if (g->mainthread->errorJmp) { /* main thread has a handler? */ in luaD_throw()
124 setobjs2s(L, g->mainthread->top.p++, L->top.p - 1); /* copy error obj. */ in luaD_throw()
125 luaD_throw(g->mainthread, errcode); /* re-throw in main thread */ in luaD_throw()
879 if (L != G(L)->mainthread) in lua_yieldk()
H A Dlstate.h296 struct lua_State *mainthread; member
H A Dlgc.c94 #define markvalue(g,o) { checkliveness(g->mainthread,o); \
405 markobject(g, g->mainthread); in restartcollection()
1516 deletelist(L, g->allgc, obj2gco(g->mainthread)); in luaC_freeallobjects()
1530 lua_assert(!iswhite(g->mainthread)); in atomic()
H A Dltests.c370 getnodekey(g->mainthread, &k, n); in checktable()
632 assert(!iswhite(g->mainthread)); in lua_checkmemory()
H A Dlapi.c629 return (G(L)->mainthread == L); in lua_pushthread()
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlstate.c279 g->mainthread = L; in lua_newstate()
315 L = G(L)->mainthread; /* only the main thread can be closed */ in lua_close()
H A Dldo.c188 if (G(L)->mainthread->errorJmp) { /* main thread has a handler? */ in luaD_throw()
189 setobjs2s(L, G(L)->mainthread->top++, L->top - 1); /* copy error obj. */ in luaD_throw()
190 luaD_throw(G(L)->mainthread, errcode); /* re-throw in main thread */ in luaD_throw()
661 if (L != G(L)->mainthread) in lua_yieldk()
H A Dlstate.h143 struct lua_State *mainthread; member
H A Dlgc.c338 markobject(g, g->mainthread); in restartcollection()
1001 lua_assert(!iswhite(obj2gco(g->mainthread))); in atomic()
1092 GCObject *mt = obj2gco(g->mainthread); in singlestep()
H A Dlapi.c596 return (G(L)->mainthread == L); in lua_pushthread()