Home
last modified time | relevance | path

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

/netbsd-src/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()
/netbsd-src/external/mit/lua/dist/src/
H A Dlstate.c308 memcpy(lua_getextraspace(L1), lua_getextraspace(g->mainthread), in lua_newthread()
383 g->mainthread = L; in lua_newstate()
422 L = G(L)->mainthread; /* only the main thread can be closed */ in lua_close()
H A Dldo.c127 if (g->mainthread->errorJmp) { /* main thread has a handler? */ in luaD_throw()
128 setobjs2s(L, g->mainthread->top.p++, L->top.p - 1); /* copy error obj. */ in luaD_throw()
129 luaD_throw(g->mainthread, errcode); /* re-throw in main thread */ in luaD_throw()
883 if (L != G(L)->mainthread) in lua_yieldk()
H A Dlstate.h298 struct lua_State *mainthread; member
H A Dlgc.c97 #define markvalue(g,o) { checkliveness(g->mainthread,o); \
408 markobject(g, g->mainthread); in restartcollection()
1519 deletelist(L, g->allgc, obj2gco(g->mainthread)); in luaC_freeallobjects()
1533 lua_assert(!iswhite(g->mainthread)); in atomic()
H A Dlapi.c639 return (G(L)->mainthread == L); in lua_pushthread()