| parrotcode: Thread-safe queues | |
| Contents | C |

src/tsq.c - Thread-safe queues


QUEUE_ENTRY *pop_entryQUEUE_ENTRY *peek_entrypop_entry() will check again and return NULL if the queue is empty.
QUEUE_ENTRY *nosync_pop_entryQUEUE_ENTRY *wait_for_entryvoid push_entryentry onto the tail of the queue.
void unshift_entryentry into the head of the queue.
void nosync_insert_entryabstime.
The caller has to hold the queue mutex.
void insert_entryentry.
void queue_lockvoid queue_unlockvoid queue_broadcastvoid queue_signalvoid queue_waitvoid queue_timedwaitabs_time seconds (?).
QUEUE *queue_initprio as the queue's priority.
void queue_destroy
include/parrot/tsq.h.
|
|
|