Roomba Tank
CSC 460 Project 3
Functions
queue.c File Reference
#include "queue.h"

Go to the source code of this file.

Functions

volatile int isFull (volatile int *QCount)
 
volatile int isEmpty (volatile int *QCount)
 
void enqueueWQ (volatile PD **p, volatile PD **Queue, 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 PDdequeueWQ (volatile PD **Queue, volatile int *QCount, MUTEX m)
 
volatile PDdequeueRQ (volatile PD **Queue, volatile int *QCount)
 
volatile PDdequeue (volatile PD **Queue, volatile int *QCount)
 

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.

volatile PD* dequeueWQ ( volatile PD **  Queue,
volatile int *  QCount,
MUTEX  m 
)

Definition at line 81 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.

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

Definition at line 17 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.