Lines Matching refs:id
73 static int thread_start (int id);
75 static int thread_delete (int id);
79 static int thread_stop (int id);
236 static int thread_delete (int id) in thread_delete() argument
238 if (id <= MASTER_THREAD || id > MAX_THREADS) in thread_delete()
241 if (current_tid == id) in thread_delete()
244 lthreads[id].state = STATE_EMPTY; in thread_delete()
265 static int thread_start (int id) in thread_start() argument
267 PDEBUG ("thread_start: id=%d", id); in thread_start()
268 if (id <= MASTER_THREAD || id > MAX_THREADS) { in thread_start()
272 if (lthreads[id].state != STATE_STOPPED) in thread_start()
276 lthreads[id].state = STATE_RUNNABLE; in thread_start()
277 current_tid = id; in thread_start()
279 (unsigned)lthreads[id].stack); in thread_start()
280 setctxsp ((vu_char *)<hreads[id].stack[STK_SIZE]); in thread_start()
284 PDEBUG ("thread_start: Thread id=%d started, parent returns", id); in thread_start()
290 static int thread_stop (int id)
292 if (id <= MASTER_THREAD || id >= MAX_THREADS)
295 if (current_tid == id)
298 lthreads[id].state = STATE_STOPPED;