14 #ifndef FOXXLL_IO_REQUEST_WITH_STATE_HEADER 15 #define FOXXLL_IO_REQUEST_WITH_STATE_HEADER 29 constexpr
static bool debug =
false;
49 void wait(
bool measure_time =
true)
final;
61 #endif // !FOXXLL_IO_REQUEST_WITH_STATE_HEADER Request with completion shared_state.
uint64_t offset_type
type for offsets within a file
bool cancel() override
Cancel a request.
size_t size_type
type for block transfer sizes
request_with_state(const completion_handler &on_complete, file *file, void *buffer, offset_type offset, size_type bytes, read_or_write op)
void completed(bool canceled) override
virtual ~request_with_state()
shared_state< request_state > state_
static constexpr bool debug
offset_type offset() const
void wait(bool measure_time=true) final
Suspends calling thread until completion of the request.
Request that is aware of threads waiting for it to complete.