Response to an I/O request. More...
#include <tpie/compressed/request.h>
Public Member Functions | |
void | wait (compressor_thread_lock &lock) |
void | initiate_request () |
void | clear_block_info () |
void | set_block_info (stream_size_type blockNumber, stream_size_type readOffset, memory_size_type blockSize) |
bool | has_block_info (stream_size_type blockNumber) |
memory_size_type | get_block_size (stream_size_type blockNumber) |
stream_size_type | get_read_offset (stream_size_type blockNumber) |
void | set_done () |
bool | done () |
stream_size_type | next_read_offset () |
void | set_next_block_offset (stream_size_type offset) |
Response to an I/O request.
The response object is used to relay information back from the compressor thread to the stream class. The compressor mutex must be acquired before any compressor_response method is called. In the code, each method is annotated with a (request kind, caller)-comment, identifying whether the method relates to a read request or a write request, and whether the stream object (main thread) or the compressor thread should call it.