#include <kernel.h>
#include <queue.h>
#include <semaphore.h>
Go to the source code of this file.
Functions | |
syscall | signal (semaphore sem) |
Definition in file signal.c.
syscall signal | ( | semaphore | sem | ) |
signal - signal a semaphore, releasing one waiting process, and block
sem | id of semaphore to signal |
Definition at line 18 of file signal.c.
References sentry::count, dequeue(), disable(), isbadsem, OK, sentry::queue, ready(), RESCHED_YES, restore(), semtab, and SYSERR.
Referenced by test_semaphore(), test_semaphore2(), and test_semaphore3().