Roomba Tank
CSC 460 Project 3
Functions | Variables
queue.h File Reference
#include "os.h"

Go to the source code of this file.

Functions

volatile int isFull (volatile int *QCount)
 
volatile int isEmpty (volatile int *QCount)
 
void enqueueSQ (volatile PD **p, volatile PD **Queue, volatile int *QCount)
 
void enqueueRQ (volatile PD **p, volatile PD **Queue, volatile int *QCount)
 
volatile PDdequeueRQ (volatile PD **Queue, volatile int *QCount)
 
volatile PDdequeue (volatile PD **Queue, volatile int *QCount)
 

Variables

volatile PDReadyQueue [MAXTHREAD]
 
volatile int RQCount
 
volatile PDSleepQueue [MAXTHREAD]
 
volatile int SQCount
 
volatile PDWaitingQueue [MAXTHREAD]
 
volatile int WQCount
 

Function Documentation

volatile PD* dequeue ( volatile PD **  Queue,
volatile int *  QCount 
)

Definition at line 137 of file queue.c.

volatile PD* dequeueRQ ( volatile PD **  Queue,
volatile int *  QCount 
)

Definition at line 109 of file queue.c.

void enqueueRQ ( volatile PD **  p,
volatile PD **  Queue,
volatile int *  QCount 
)

Definition at line 57 of file queue.c.

void enqueueSQ ( volatile PD **  p,
volatile PD **  Queue,
volatile int *  QCount 
)

Definition at line 33 of file queue.c.

volatile int isEmpty ( volatile int *  QCount)

Definition at line 13 of file queue.c.

volatile int isFull ( volatile int *  QCount)

Definition at line 6 of file queue.c.

Variable Documentation

volatile PD* ReadyQueue[MAXTHREAD]

The ReadyQueue for tasks

Definition at line 104 of file os.c.

volatile int RQCount

Definition at line 105 of file os.c.

volatile PD* SleepQueue[MAXTHREAD]

The SleepQueue for tasks

Definition at line 108 of file os.c.

volatile int SQCount

Definition at line 109 of file os.c.

volatile PD* WaitingQueue[MAXTHREAD]

The WaitingQueue for tasks

Definition at line 112 of file os.c.

volatile int WQCount

Definition at line 113 of file os.c.