getitem.c File Reference

Implements the functions: getfirst, getlast, getitem. More...

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

Include dependency graph for getitem.c:

Go to the source code of this file.

Functions

tid_typ getfirst (qid_typ q)
 Remove a thread from front of queue.
tid_typ getlast (qid_typ q)
 Remove a thread from end of queue.
tid_typ getitem (tid_typ tid)
 Remove a thread from anywhere in a queue.


Detailed Description

Implements the functions: getfirst, getlast, getitem.

Id
getitem.c 1521 2008-08-27 21:51:17Z mschul

Definition in file getitem.c.


Function Documentation

tid_typ getfirst ( qid_typ  q  ) 

Remove a thread from front of queue.

Parameters:
q target queue
Returns:
thread ID of removed thread

Definition at line 17 of file getitem.c.

References EMPTY, getitem(), quetab, and SYSERR.

Referenced by dequeue().

Here is the call graph for this function:

Here is the caller graph for this function:

tid_typ getitem ( tid_typ  tid  ) 

Remove a thread from anywhere in a queue.

Parameters:
tid thread ID to get
Returns:
thread ID of removed thread

Definition at line 49 of file getitem.c.

References EMPTY, and quetab.

Referenced by getfirst(), getlast(), kill(), suspend(), and unsleep().

Here is the caller graph for this function:

tid_typ getlast ( qid_typ  q  ) 

Remove a thread from end of queue.

Parameters:
q target queue
Returns:
thread ID of removed thread

Definition at line 33 of file getitem.c.

References EMPTY, getitem(), quetab, and SYSERR.

Here is the call graph for this function:


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