15 #ifndef FOXXLL_IO_DISK_QUEUED_FILE_HEADER 16 #define FOXXLL_IO_DISK_QUEUED_FILE_HEADER 33 : queue_id_(queue_id), allocator_id_(allocator_id)
59 #endif // !FOXXLL_IO_DISK_QUEUED_FILE_HEADER request::offset_type offset_type
the offset of a request, also the size of the file
int get_allocator_id() const override
Returns the file's parallel disk block allocator number.
Implementation of some file methods based on serving_request.
request_ptr awrite(void *buffer, offset_type pos, size_type bytes, const completion_handler &on_complete=completion_handler()) override
disk_queued_file(int queue_id, int allocator_id)
tlx::delegate< void(request *r, bool success)> completion_handler
completion handler
request::size_type size_type
the size of a request
request_ptr aread(void *buffer, offset_type pos, size_type bytes, const completion_handler &on_complete=completion_handler()) override
High-performance smart pointer used as a wrapping reference counting pointer.
static const size_t bytes
number of bytes in uint_pair
int get_queue_id() const override