Searched defs:dataq (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/syslogd/
H A Ddataq.h45 typedef struct dataq { struct
54 int dataq_enqueue(dataq_t *dataq, void *in);
55 int dataq_dequeue(dataq_t *dataq, void **outptr, int);
56 int dataq_destroy(dataq_t *dataq);
H A Dqueue.c31 #include "dataq.h"
59 dataq_enqueue(dataq_t *dataq, void *in) argument
67 (void) pthread_mutex_lock(&dataq->lock);
68 assert(dataq_check(dataq));
69 ll_enqueue(&dataq->data, &ptr->list);
70 dataq->num_data++;
71 if (dataq->num_waiters) {
73 sleeper = (dataq_waiter_t *)ll_peek(&dataq->waiters);
77 assert(dataq_check(dataq));
78 (void) pthread_mutex_unlock(&dataq
83 dataq_dequeue(dataq_t *dataq, void **outptr, int try) argument
137 dataq_destroy(dataq_t *dataq) argument
[all...]

Completed in 56 milliseconds