1 /* pq.h - priority queue header */
14 /* make a fixed-size priority queue of the given size */
15 pq
make_pq(unsigned int size
);
17 /* return 1 if the job was inserted, else 0 */
18 int pq_give(pq q
, job j
);
20 /* return a job if the queue contains jobs, else NULL */
23 /* return a job that matches the given id, else NULL */
24 /* This is O(n), so don't do it much. */
25 job
pq_find(pq q
, unsigned long long int id
);
27 unsigned int pq_used(pq q
);