Lines Matching refs:MAX_THREADS
26 #define MAX_THREADS 8
56 static volatile struct lthread lthreads[MAX_THREADS];
171 for (i = MASTER_THREAD + 1; i < MAX_THREADS; i++)
204 for (i = current_tid + 1; i < MAX_THREADS; i++) {
222 for (i = MASTER_THREAD + 1; i < MAX_THREADS; i++) {
238 if (id <= MASTER_THREAD || id > MAX_THREADS)
268 if (id <= MASTER_THREAD || id > MAX_THREADS) {
292 if (id <= MASTER_THREAD || id >= MAX_THREADS)
309 if (!(*ret == -1 || *ret > MASTER_THREAD || *ret < MAX_THREADS)) {
319 for (i = MASTER_THREAD + 1; i < MAX_THREADS; i++) {