Searched refs:lthreads (Results 1 – 4 of 4) sorted by relevance
56 static volatile struct lthread lthreads[MAX_THREADS]; variable172 lthreads[i].state = STATE_EMPTY; in sched_init()175 lthreads[current_tid].state = STATE_RUNNABLE; in sched_init()177 (unsigned)lthreads[current_tid].context); in sched_init()188 if(lthreads[new].state == STATE_RUNNABLE) { \ in thread_yield()191 (unsigned)lthreads[current_tid].context); \ in thread_yield()192 if(setjmp(lthreads[current_tid].context) == 0) { \ in thread_yield()196 longjmp(lthreads[new].context, 1); \ in thread_yield()223 if (lthreads[i].state == STATE_EMPTY) { in thread_create()224 lthreads[i].state = STATE_STOPPED; in thread_create()[all …]
130 pthread_t *lthreads; member
217 dp.lthreads = malloc(sizeof(pthread_t) * clnt); in initialize()242 free(dp.lthreads); in clean()
2678 LIBS="$LIBS -lthreads"