2 * Copyright (C) 1994, Index Data.
3 * See the file LICENSE for details.
4 * Sebastian Hammer, Adam Dickmeiss
7 * Revision 1.3 1997-09-01 08:53:00 adam
8 * New windows NT/95 port using MSV5.0. The test server 'ztest' was
9 * moved a separate directory. MSV5.0 project server.dsp created.
10 * As an option, the server can now operate as an NT service.
12 * Revision 1.2 1995/11/01 13:54:57 quinn
15 * Revision 1.1 1995/05/15 12:12:22 quinn
22 * Simple queue management.
24 * We also use the request-freelist to store encoding buffers, rather than
25 * freeing and xmalloc'ing them on each cycle.
33 void request_enq(request_q *q, request *r)
43 request *request_head(request_q *q)
48 request *request_deq(request_q *q)
54 q->head = q->head->next;
61 void request_initq(request_q *q)
63 q->head = q->tail = q->list = 0;
67 void request_delq(request_q *q)
69 request *r1, *r = q->list;
78 request *request_get(request_q *q)
86 if (!(r = xmalloc(sizeof(*r))))
96 r->state = REQUEST_IDLE;
101 void request_release(request *r)