6 reqqueueflush \- deferred processing of 9P requests
28 .ta \w'\fLReaddir* 'u +4n +4n
29 Reqqueue* reqqueuecreate(void);
30 void reqqueuepush(Reqqueue *q, Req *r, void (*f)(Req *));
31 void reqqueueflush(Reqqueue *q, Req *r);
32 void reqqueuefree(Reqqueue *q);
36 provides routines for deferred processing of 9p request in
37 multithreaded 9p servers.
41 function spawns a process for handling requests returning
46 To schedule a request to be processed on a queue,
48 is called with request
50 and its handler function
53 A previously submitted request can be flushed from a queue
56 which will remove the request immediately if processing has
57 not started. If processing has been started, the process
62 No new requests should be send to the queue and it will be freed once all requests in it have been processed.
64 .B /sys/src/lib9p/queue.c