The different states of a compressor buffer. More...
#include <tpie/compressed/buffer.h>
Public Types | |
enum | type { dirty, writing, reading, clean } |
The different states of a compressor buffer.
dirty: The buffer is different from the contents on the disk. Only stream may read and write. This is the initial state of a freshly allocated buffer.
writing: The buffer will soon be written to disk. Stream and thread may only read.
reading: The buffer will soon change to reflect the contents on the disk. Only thread may read and write.
clean: The buffer is equal to the contents on the disk. Only stream may read and write.
dirty->writing/reading: When the buffer is sent from stream to thread. writing/reading->clean: When the thread is done. clean->dirty: When the stream has changed the contents of the buffer.
Definition at line 66 of file buffer.h.