Lines Matching refs:item
25 pitem *item = pqueue_pop(q); in clear_and_free_queue() local
26 if (item == NULL) { in clear_and_free_queue()
29 pitem_free(item); in clear_and_free_queue()
41 pitem *item = pitem_new(priority, &data); in trivial() local
42 if (item == NULL || in trivial()
43 pqueue_insert(q, item) != item || in trivial()
45 pqueue_peek(q) != item || in trivial()
46 pqueue_pop(q) != item || in trivial()
51 pitem_free(item); in trivial()
66 pitem *curr, *item; in fixed_random() local
75 item = pitem_new(priority, &ordering[i]); in fixed_random()
76 if (item == NULL || pqueue_insert(q, item) != item) { in fixed_random()
85 item = pitem_new(priority, &ordering[i]); in fixed_random()
86 if (item == NULL || pqueue_insert(q, item) != NULL) { in fixed_random()
89 pitem_free(item); in fixed_random()