Lines Matching defs:graph_queue
78 static graph_protocol_event_queue_t *graph_queue;
88 graph_queue = startd_zalloc(sizeof (graph_protocol_event_queue_t));
90 (void) pthread_mutex_init(&graph_queue->gpeq_lock, &mutex_attrs);
91 graph_queue->gpeq_event_list = startd_list_create(
92 graph_protocol_event_queue_pool, graph_queue, NULL);
117 MUTEX_LOCK(&graph_queue->gpeq_lock);
119 if (uu_list_insert_before(graph_queue->gpeq_event_list, NULL, e) == -1)
123 MUTEX_UNLOCK(&graph_queue->gpeq_lock);
148 MUTEX_LOCK(&graph_queue->gpeq_lock);
150 e = uu_list_first(graph_queue->gpeq_event_list);
152 MUTEX_UNLOCK(&graph_queue->gpeq_lock);
156 if (uu_list_next(graph_queue->gpeq_event_list, e) != NULL)
158 uu_list_remove(graph_queue->gpeq_event_list, e);
159 MUTEX_UNLOCK(&graph_queue->gpeq_lock);
175 MUTEX_LOCK(&graph_queue->gpeq_lock);
176 if (uu_list_insert_after(graph_queue->gpeq_event_list, NULL, e) == -1)
180 MUTEX_UNLOCK(&graph_queue->gpeq_lock);