]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/man/2/9pqueue
games/galaxy: Change button 2 to reposition the galaxy, remove "move" from the button...
[plan9front.git] / sys / man / 2 / 9pqueue
index 5cf6bb269a3eb0c85e94ebd114fa4464aa81aaba..54d76a3c01bb83eaee81d62156bcb6fc43aac9aa 100644 (file)
@@ -3,7 +3,7 @@
 Reqqueue,
 reqqueuecreate,
 reqqueuepush,
-reqqueueflush \- defered processing of 9P requests
+reqqueueflush \- deferred processing of 9P requests
 .SH SYNOPSIS
 .ft L
 .nf
@@ -29,10 +29,11 @@ struct Reqqueue
 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
@@ -49,12 +50,16 @@ is called with request
 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