#include <stdio.h>#include <stdlib.h>#include <platform.h>#include <earthworm.h>#include <earthworm_complex_funcs.h>#include <priority_queue.h>Go to the source code of this file.
Defines | |
| #define | EW_PRI_SHIFT_DOWN -1 |
| #define | EW_PRI_SHIFT_NONE 0 |
| #define | EW_PRI_SHIFT_UP 1 |
Functions | |
| int | init_pri_queue (PRI_QUEUE *p_queue, unsigned long p_max_items, unsigned long p_max_item_size) |
| void | release_pri_queue (PRI_QUEUE *p_queue) |
| int | getNumOfElementsInQueue (PRI_QUEUE *p_queue) |
| int | add_item (PRI_QUEUE *p_queue, EW_PRIORITY p_priority, MSG_LOGO p_logo, long p_size, PRI_DATA p_data) |
| int | peek_next_item (PRI_QUEUE *p_queue, MSG_LOGO *p_logoptr, EW_PRIORITY *p_priptr) |
| int | pop_next_item (PRI_QUEUE *p_queue, MSG_LOGO *p_logoptr, long *p_sizeptr, PRI_DATA p_data) |
|
|
Definition at line 40 of file priority_queue.c. Referenced by add_item(). |
|
|
Definition at line 41 of file priority_queue.c. Referenced by add_item(). |
|
|
Definition at line 42 of file priority_queue.c. Referenced by add_item(). |
|
||||||||||||||||||||||||
|
|
Definition at line 207 of file priority_queue.c. References PRI_QUEUE::itemsused. |
|
||||||||||||||||
|
||||||||||||||||
|
Definition at line 489 of file priority_queue.c. References EW_PRI_NOITEM, EW_PRI_RETNORMAL, EW_PRIORITY_NONE, MSG_LOGO::instid, PRI_QUEUE::lock, PRI_QUEUE_ENTRY::logo, MSG_LOGO::mod, PRI_QUEUE_ENTRY::pri, PRI_QUEUE::queuesize, ReleaseSpecificMutex(), RequestSpecificMutex(), PRI_QUEUE::sorted, and MSG_LOGO::type. |
|
||||||||||||||||||||
|
|
Definition at line 178 of file priority_queue.c. References CloseSpecificMutex(), PRI_QUEUE::data, PRI_QUEUE::entries, PRI_QUEUE::itemsused, PRI_QUEUE::lock, PRI_QUEUE::queuesize, and PRI_QUEUE::sorted. Referenced by init_pri_queue(). |
1.3-rc3