#include <kernel.h>#include <proc.h>#include <queue.h>#include <clock.h>

Go to the source code of this file.
Functions | |
| syscall | sleep (int ms) |
Definition in file sleep.c.
| syscall sleep | ( | int | ms | ) |
Delay the calling process n milliseconds.
| ms | number of milliseconds to sleep |
Definition at line 19 of file sleep.c.
References ASSERT, currpid, disable(), insertd(), OK, proctab, PRSLEEP, resched(), restore(), sleepq, pentry::state, and SYSERR.
Referenced by shell(), testItem(), xsh_exit(), xsh_kill(), and xsh_sleep().
1.5.5