Lines Matching defs:Queue
11 struct Queue struct
13 Lock l;
15 Block* bfirst; /* buffer */
16 Block* blast;
18 int len; /* bytes allocated to queue */
19 int dlen; /* data bytes in queue */
20 int limit; /* max bytes in queue */
21 int inilim; /* initial limit */
22 int state;
23 int noblock; /* true if writes return immediately when q full */
24 int eof; /* number of eofs read by user */
26 void (*kick)(void*); /* restart output */
27 void (*bypass)(void*, Block*); /* bypass queue altogether */
28 void* arg; /* argument to kick */
30 QLock rlock; /* mutex for reading processes */
31 Rendez rr; /* process waiting to read */
32 QLock wlock; /* mutex for writing processes */
33 Rendez wr; /* process waiting to write */
35 char err[ERRMAX];
36 int want;