insert.c File Reference

Implements the functions: insert. More...

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

Include dependency graph for insert.c:

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

int insert ( tid_typ  tid,
qid_typ  q,
int  key 
)

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().

Here is the caller graph for this function:


Generated on Fri Sep 19 13:40:29 2008 for Embedded XINU by  doxygen 1.5.6