proxygen
SlowMover Struct Reference

Public Member Functions

 SlowMover (bool slow_=false)
 
 SlowMover (SlowMover &&other) noexcept
 
SlowMoveroperator= (SlowMover &&other) noexcept
 

Public Attributes

bool slow
 

Detailed Description

Definition at line 575 of file ThreadPoolExecutorTest.cpp.

Constructor & Destructor Documentation

SlowMover::SlowMover ( bool  slow_ = false)
inlineexplicit

Definition at line 576 of file ThreadPoolExecutorTest.cpp.

576 : slow(slow_) {}
SlowMover::SlowMover ( SlowMover &&  other)
inlinenoexcept

Definition at line 577 of file ThreadPoolExecutorTest.cpp.

References folly::gen::move.

577  {
578  *this = std::move(other);
579  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Member Function Documentation

SlowMover& SlowMover::operator= ( SlowMover &&  other)
inlinenoexcept

Definition at line 580 of file ThreadPoolExecutorTest.cpp.

580  {
581  slow = other.slow;
582  if (slow) {
583  /* sleep override */ std::this_thread::sleep_for(milliseconds(50));
584  }
585  return *this;
586  }

Member Data Documentation

bool SlowMover::slow

Definition at line 588 of file ThreadPoolExecutorTest.cpp.


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