#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <earthworm.h>
#include <time.h>
#include <mem_circ_queue.h>
Go to the source code of this file.
Functions | |
void | inc_circular (QUEUE *q, Q_POS *pQPos) |
void | dec_circular (QUEUE *q, Q_POS *pQPos) |
int | initqueue (QUEUE *q, unsigned long maxElements, unsigned long elementMaxSize) |
int | dequeue (QUEUE *q, DATA x, long *size, MSG_LOGO *userLogoPtr) |
int | enqueue (QUEUE *q, DATA x, long size, MSG_LOGO userLogo) |
int | getNumOfElementsInQueue (QUEUE *q) |
Q_POS | getNext (QUEUE *q, int QueuePosition) |
Q_POS | getPrev (QUEUE *q, int QueuePosition) |
Q_POS | getPosFirst (QUEUE *q) |
Q_POS | getPosLast (QUEUE *q) |
int | dumpqueue (QUEUE *q, char *filename) |
int | undumpqueue (QUEUE *q, char *filename) |
DATA | peekNextElement (QUEUE *q) |
|
Definition at line 207 of file mem_circ_queue.c. References QUEUE::MyMaxElements. Referenced by getPrev(). |
|
Definition at line 113 of file mem_circ_queue.c. References QUEUE_ENTRY::d, QUEUE::first, inc_circular(), MSG_LOGO::instid, QUEUE_ENTRY::length, MSG_LOGO::mod, QUEUE::NumOfElements, QUEUE::pQE, QUEUE_ENTRY::queueLogo, and MSG_LOGO::type. |
|
Definition at line 265 of file mem_circ_queue.c. References QUEUE_ENTRY::d, QUEUE::first, inc_circular(), QUEUE_ENTRY::length, QUEUE::NumOfElements, QUEUE::pQE, Q_POS, and QUEUE_ENTRY::queueLogo. |
|
Definition at line 154 of file mem_circ_queue.c. References QUEUE_ENTRY::d, QUEUE::first, inc_circular(), MSG_LOGO::instid, QUEUE::last, MSG_LOGO::mod, QUEUE::MyMaxElements, QUEUE::MyMaxSize, QUEUE::NumOfElements, QUEUE::pQE, QUEUE_ENTRY::queueLogo, and MSG_LOGO::type. |
|
Definition at line 220 of file mem_circ_queue.c. References inc_circular(), QUEUE::MyMaxElements, and Q_POS. |
|
Definition at line 215 of file mem_circ_queue.c. |
|
Definition at line 249 of file mem_circ_queue.c. References QUEUE::first, and Q_POS. |
|
Definition at line 255 of file mem_circ_queue.c. References QUEUE::last, and Q_POS. |
|
Definition at line 235 of file mem_circ_queue.c. References dec_circular(), QUEUE::MyMaxElements, and Q_POS. |
|
Definition at line 198 of file mem_circ_queue.c. References QUEUE::MyMaxElements. Referenced by dequeue(), dumpqueue(), enqueue(), getNext(), and undumpqueue(). |
|
Definition at line 52 of file mem_circ_queue.c. References QUEUE_ENTRY::d, QUEUE::first, QUEUE::last, QUEUE::MyMaxElements, QUEUE::MyMaxSize, QUEUE::NumOfElements, and QUEUE::pQE. |
|
Definition at line 418 of file mem_circ_queue.c. References DATA, QUEUE::first, QUEUE::NumOfElements, and QUEUE::pQE. |
|
Definition at line 335 of file mem_circ_queue.c. References QUEUE_ENTRY::d, QUEUE::first, inc_circular(), QUEUE::last, QUEUE_ENTRY::length, QUEUE::MyMaxElements, QUEUE::MyMaxSize, QUEUE::NumOfElements, QUEUE::pQE, and QUEUE_ENTRY::queueLogo. |