include/llfio/v2.0/algorithm/clone.hpp
/*! \brief Called when we have performed a single full round of reduction.

    \note Always called from the original kernel thread.
    */
\brief Called when we have performed a single full round of reduction.
\note Always called from the original kernel thread.
\ brief Called when we have performed a single full round of reduction . \ note Always called from the original kernel thread .
virtual result<void> reduction_round(void *data, size_t round_completed, size_t items_unlinked, size_t items_remaining) noexcept
    {
      (void) data;
      (void) round_completed;
      (void) items_unlinked;
      if(items_remaining > 0)
      {
        if(begin == std::chrono::steady_clock::time_point())
        {
          begin = std::chrono::steady_clock::now();
        }
        else if((std::chrono::steady_clock::now() - begin) > timeout)
        {
          return errc::timed_out;
        }
      }
      return success();
    }
virtual result < void > reduction_round ( void * data , size_t round_completed , size_t items_unlinked , size_t items_remaining ) noexcept { ( void ) data ; ( void ) round_completed ; ( void ) items_unlinked ; if ( items_remaining > 0 ) { if ( begin == std :: chrono :: steady_clock :: time_point ( ) ) { begin = std :: chrono :: steady_clock :: now ( ) ; } else if ( ( std :: chrono :: steady_clock :: now ( ) - begin ) > timeout ) { return errc :: timed_out ; } } return success ( ) ; }
\brief Called when we have performed a single full round of reduction.
\ brief Called when we have performed a single full round of reduction .