LLFIO  v2.00
llfio_v2_xxx::byte_io_multiplexer::io_operation_state_visitor Struct Reference

Called by an i/o operation state to inform you of state change. Note that the i/o operation state lock is HELD during these calls! More...

#include "byte_io_multiplexer.hpp"

Inheritance diagram for llfio_v2_xxx::byte_io_multiplexer::io_operation_state_visitor:
llfio_v2_xxx::byte_io_multiplexer::awaitable< T >

Public Types

using lock_guard = io_operation_state::lock_guard
 

Public Member Functions

virtual void read_initiated (lock_guard &, io_operation_state_type)
 Called when an i/o has been initiated, and is now being processed asynchronously.
 
virtual bool read_completed (lock_guard &, io_operation_state_type, io_result< buffers_type > &&)
 Called when an i/o has completed, and its result is available. Return true if you consume the result.
 
virtual void read_finished (lock_guard &, io_operation_state_type)
 Called when an i/o has finished, and its state can now be destroyed.
 
virtual void write_initiated (lock_guard &, io_operation_state_type)
 Called when an i/o has been initiated, and is now being processed asynchronously.
 
virtual bool write_completed (lock_guard &, io_operation_state_type, io_result< const_buffers_type > &&)
 Called when an i/o has completed, and its result is available. Return true if you consume the result.
 
virtual void barrier_initiated (lock_guard &, io_operation_state_type)
 Called when an i/o has been initiated, and is now being processed asynchronously.
 
virtual bool barrier_completed (lock_guard &, io_operation_state_type, io_result< const_buffers_type > &&)
 Called when an i/o has completed, and its result is available. Return true if you consume the result.
 
virtual void write_or_barrier_finished (lock_guard &, io_operation_state_type)
 Called when an i/o has finished, and its state can now be destroyed.
 

Detailed Description

Called by an i/o operation state to inform you of state change. Note that the i/o operation state lock is HELD during these calls!


The documentation for this struct was generated from the following file: