| CS318 - Pintos
    Pintos source browser for JHU CS318 course | 
A circular queue of bytes. More...
#include <intq.h>

| Data Fields | |
| struct lock | lock | 
| Only one thread may wait at once.  More... | |
| struct thread * | not_full | 
| Thread waiting for not-full condition.  More... | |
| struct thread * | not_empty | 
| Thread waiting for not-empty condition.  More... | |
| uint8_t | buf [INTQ_BUFSIZE] | 
| Buffer.  More... | |
| int | head | 
| New data is written here.  More... | |
| int | tail | 
| Old data is read here.  More... | |
| uint8_t intq::buf[INTQ_BUFSIZE] | 
| int intq::head | 
New data is written here.
Definition at line 33 of file intq.h.
Referenced by intq_empty(), intq_full(), intq_init(), and intq_putc().
| struct lock intq::lock | 
Only one thread may wait at once.
Definition at line 27 of file intq.h.
Referenced by intq_getc(), intq_init(), and intq_putc().
| struct thread* intq::not_empty | 
Thread waiting for not-empty condition.
Definition at line 29 of file intq.h.
Referenced by intq_getc(), intq_init(), and intq_putc().
| struct thread* intq::not_full | 
Thread waiting for not-full condition.
Definition at line 28 of file intq.h.
Referenced by intq_getc(), intq_init(), and intq_putc().
| int intq::tail | 
Old data is read here.
Definition at line 34 of file intq.h.
Referenced by intq_empty(), intq_full(), intq_getc(), and intq_init().
 1.8.16
 1.8.16