#include <thread.h>
#include <queue.h>
#include <memory.h>

Go to the source code of this file.
Functions | |
| void | xdone (void) |
| Print system completion message as last thread exits. | |
| syscall | kill (int tid) |
| Kill a thread and remove it from the system. | |
Definition in file kill.c.
| syscall kill | ( | int | tid | ) |
Kill a thread and remove it from the system.
| tid | target thread |
Definition at line 21 of file kill.c.
References disable, getitem(), NULLTHREAD, OK, resched(), restore, send(), SYSERR, thrcount, THRCURR, THRFREE, THRREADY, THRSLEEP, THRWAIT, and xdone().
Referenced by test_preempt(), userret(), xsh_exit(), and xsh_kill().


1.5.6