insert.c File Reference
Implements the functions: insert.
More...
#include <stddef.h>
#include <thread.h>
#include <queue.h>
Go to the source code of this file.
|
Functions |
| int | insert (tid_typ tid, qid_typ q, int key) |
| | Insert a thread into a queue in descending key order.
|
Detailed Description
Implements the functions: insert.
- Id
- insert.c 1521 2008-08-27 21:51:17Z mschul
Definition in file insert.c.
Function Documentation
Insert a thread into a queue in descending key order.
- Parameters:
-
| tid | thread ID to insert |
| q | target queue |
| key | sorting key |
- Returns:
- OK
Definition at line 20 of file insert.c.
References OK, quetab, and SYSERR.
Referenced by ready(), and resched().