LLFIO v2.00
Loading...
Searching...
No Matches
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!

Constructor & Destructor Documentation

◆ ~io_operation_state_visitor()

virtual llfio_v2_xxx::byte_io_multiplexer::io_operation_state_visitor::~io_operation_state_visitor ( )
inlinevirtual
678{}

Member Function Documentation

◆ barrier_completed()

virtual bool llfio_v2_xxx::byte_io_multiplexer::io_operation_state_visitor::barrier_completed ( lock_guard ,
io_operation_state_type  ,
io_result< const_buffers_type > &&   
)
inlinevirtual

Called when an i/o has completed, and its result is available. Return true if you consume the result.

692{ return false; }

◆ barrier_initiated()

virtual void llfio_v2_xxx::byte_io_multiplexer::io_operation_state_visitor::barrier_initiated ( lock_guard ,
io_operation_state_type   
)
inlinevirtual

Called when an i/o has been initiated, and is now being processed asynchronously.

690{}

◆ read_completed()

virtual bool llfio_v2_xxx::byte_io_multiplexer::io_operation_state_visitor::read_completed ( lock_guard ,
io_operation_state_type  ,
io_result< buffers_type > &&   
)
inlinevirtual

Called when an i/o has completed, and its result is available. Return true if you consume the result.

682{ return false; }

◆ read_finished()

virtual void llfio_v2_xxx::byte_io_multiplexer::io_operation_state_visitor::read_finished ( lock_guard ,
io_operation_state_type   
)
inlinevirtual

Called when an i/o has finished, and its state can now be destroyed.

Reimplemented in llfio_v2_xxx::byte_io_multiplexer::awaitable< T >.

684{}

◆ read_initiated()

virtual void llfio_v2_xxx::byte_io_multiplexer::io_operation_state_visitor::read_initiated ( lock_guard ,
io_operation_state_type   
)
inlinevirtual

Called when an i/o has been initiated, and is now being processed asynchronously.

680{}

◆ write_completed()

virtual bool llfio_v2_xxx::byte_io_multiplexer::io_operation_state_visitor::write_completed ( lock_guard ,
io_operation_state_type  ,
io_result< const_buffers_type > &&   
)
inlinevirtual

Called when an i/o has completed, and its result is available. Return true if you consume the result.

688{ return false; }

◆ write_initiated()

virtual void llfio_v2_xxx::byte_io_multiplexer::io_operation_state_visitor::write_initiated ( lock_guard ,
io_operation_state_type   
)
inlinevirtual

Called when an i/o has been initiated, and is now being processed asynchronously.

686{}

◆ write_or_barrier_finished()

virtual void llfio_v2_xxx::byte_io_multiplexer::io_operation_state_visitor::write_or_barrier_finished ( lock_guard ,
io_operation_state_type   
)
inlinevirtual

Called when an i/o has finished, and its state can now be destroyed.

Reimplemented in llfio_v2_xxx::byte_io_multiplexer::awaitable< T >.

694{}

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