Home | History | Annotate | Download | only in src

Lines Matching defs:thread

309 ** thread.) Remove from the list threads that no longer have upvalues and
313 lua_State *thread;
315 while ((thread = *p) != NULL) {
316 lua_assert(!isblack(thread)); /* threads are never black */
317 if (isgray(thread) && thread->openupval != NULL)
318 p = &thread->twups; /* keep marked thread with upvalues in the list */
319 else { /* thread is not marked or without upvalues */
321 *p = thread->twups; /* remove thread from the list */
322 thread->twups = thread; /* mark that it is out of list */
323 for (uv = thread->openupval; uv != NULL; uv = uv->u.open.next) {
509 ** open upvalues point to values in a thread, so those values should
510 ** be marked when the thread is traversed except in the atomic phase
511 ** (because then the value cannot be changed by the thread and the
512 ** thread may not be traversed again)
542 /* 'remarkupvals' may have removed thread from 'twups' list */
991 markobject(g, L); /* mark running thread */
1080 makewhite(g, g->mainthread); /* sweep main thread */