Home
last modified time | relevance | path

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

/freebsd-12.1/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-12.1/contrib/lua/src/
H A Dlstate.c276 memcpy(lua_getextraspace(L1), lua_getextraspace(g->mainthread), in lua_newthread()
310 g->mainthread = L; in lua_newstate()
342 L = G(L)->mainthread; /* only the main thread can be closed */ in lua_close()
H A Dldo.c118 if (g->mainthread->errorJmp) { /* main thread has a handler? */ in luaD_throw()
119 setobjs2s(L, g->mainthread->top++, L->top - 1); /* copy error obj. */ in luaD_throw()
120 luaD_throw(g->mainthread, errcode); /* re-throw in main thread */ in luaD_throw()
699 if (L != G(L)->mainthread) in lua_yieldk()
H A Dlgc.c254 getuservalue(g->mainthread, gco2u(o), &uvalue); in reallymarkobject()
340 markobject(g, g->mainthread); in restartcollection()
988 lua_assert(!iswhite(g->mainthread)); in atomic()
1080 makewhite(g, g->mainthread); /* sweep main thread */ in singlestep()
H A Dlstate.h166 struct lua_State *mainthread; member
H A Dlapi.c578 return (G(L)->mainthread == L); in lua_pushthread()
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/
H A Dlstate.c280 g->mainthread = L; in lua_newstate()
316 L = G(L)->mainthread; /* only the main thread can be closed */ in lua_close()
H A Dldo.c120 if (G(L)->mainthread->errorJmp) { /* main thread has a handler? */ in luaD_throw()
121 setobjs2s(L, G(L)->mainthread->top++, L->top - 1); /* copy error obj. */ in luaD_throw()
122 luaD_throw(G(L)->mainthread, errcode); /* re-throw in main thread */ in luaD_throw()
583 if (L != G(L)->mainthread) in lua_yieldk()
H A Dlstate.h143 struct lua_State *mainthread; member
H A Dlgc.c340 markobject(g, g->mainthread); in restartcollection()
1003 lua_assert(!iswhite(obj2gco(g->mainthread))); in atomic()
1094 GCObject *mt = obj2gco(g->mainthread); in singlestep()
H A Dlapi.c597 return (G(L)->mainthread == L); in lua_pushthread()