Reqqueue,
reqqueuecreate,
reqqueuepush,
-reqqueueflush \- defered processing of 9P requests
+reqqueueflush \- deferred processing of 9P requests
.SH SYNOPSIS
.ft L
.nf
Reqqueue* reqqueuecreate(void);
void reqqueuepush(Reqqueue *q, Req *r, void (*f)(Req *));
void reqqueueflush(Reqqueue *q, Req *r);
+void reqqueuefree(Reqqueue *q);
.fi
.SH DESCRIPTION
.I Reqqueue
-provides routines for defered processing of 9p request in
+provides routines for deferred processing of 9p request in
multithreaded 9p servers.
.PP
The
and its handler function
.IR f .
.PP
-A previously submited request can be flushed from a queue
+A previously submitted request can be flushed from a queue
by
.I reqqueueflush
-which will reply the request immidiately when processing has
+which will remove the request immediately if processing has
not started. If processing has been started, the process
will be interrupted.
+.PP
+.I Reqqueuefree
+frees a queue.
+No new requests should be send to the queue and it will be freed once all requests in it have been processed.
.SH SOURCE
.B /sys/src/lib9p/queue.c
.SH SEE ALSO