parrotcode: Thread-safe queues | |
Contents | C |
src/tsq.c - Thread-safe queues
QUEUE_ENTRY *pop_entry
QUEUE_ENTRY *peek_entry
pop_entry()
will check again and return NULL
if the queue is empty.QUEUE_ENTRY *nosync_pop_entry
QUEUE_ENTRY *wait_for_entry
void push_entry
entry
onto the tail of the queue.void unshift_entry
entry
into the head of the queue.void nosync_insert_entry
abstime
.
The caller has to hold the queue mutex.void insert_entry
entry
.void queue_lock
void queue_unlock
void queue_broadcast
void queue_signal
void queue_wait
void queue_timedwait
abs_time
seconds (?).QUEUE *queue_init
prio
as the queue's priority.void queue_destroy
include/parrot/tsq.h.
|