proxygen
ManualWaiter Struct Reference
Inheritance diagram for ManualWaiter:
folly::DrivableExecutor folly::Executor

Public Member Functions

 ManualWaiter (std::shared_ptr< ManualExecutor > ex_)
 
void add (Func f) override
 
void drive () override
 
- Public Member Functions inherited from folly::DrivableExecutor
 ~DrivableExecutor () override=default
 
- Public Member Functions inherited from folly::Executor
virtual ~Executor ()
 
virtual void add (Func)=0
 
virtual void addWithPriority (Func, int8_t priority)
 
virtual uint8_t getNumPriorities () const
 

Public Attributes

std::shared_ptr< ManualExecutorex
 

Additional Inherited Members

- Static Public Member Functions inherited from folly::Executor
template<typename ExecutorT >
static KeepAlive< ExecutorT > getKeepAliveToken (ExecutorT *executor)
 
template<typename ExecutorT >
static KeepAlive< ExecutorT > getKeepAliveToken (ExecutorT &executor)
 
- Static Public Attributes inherited from folly::Executor
static const int8_t LO_PRI = SCHAR_MIN
 
static const int8_t MID_PRI = 0
 
static const int8_t HI_PRI = SCHAR_MAX
 
- Protected Member Functions inherited from folly::Executor
virtual bool keepAliveAcquire ()
 
virtual void keepAliveRelease ()
 
- Static Protected Member Functions inherited from folly::Executor
template<typename ExecutorT >
static bool isKeepAliveDummy (const KeepAlive< ExecutorT > &keepAlive)
 
template<typename ExecutorT >
static KeepAlive< ExecutorT > makeKeepAlive (ExecutorT *executor)
 

Detailed Description

Definition at line 29 of file ViaTest.cpp.

Constructor & Destructor Documentation

ManualWaiter::ManualWaiter ( std::shared_ptr< ManualExecutor ex_)
inlineexplicit

Definition at line 30 of file ViaTest.cpp.

30 : ex(ex_) {}
std::shared_ptr< ManualExecutor > ex
Definition: ViaTest.cpp:41

Member Function Documentation

void ManualWaiter::add ( Func  f)
inlineoverride

Definition at line 32 of file ViaTest.cpp.

References folly::gen::move.

32  {
33  ex->add(std::move(f));
34  }
auto f
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
std::shared_ptr< ManualExecutor > ex
Definition: ViaTest.cpp:41
void ManualWaiter::drive ( )
inlineoverridevirtual

Implements folly::DrivableExecutor.

Definition at line 36 of file ViaTest.cpp.

Referenced by ViaFixture::ViaFixture().

36  {
37  ex->wait();
38  ex->run();
39  }
std::shared_ptr< ManualExecutor > ex
Definition: ViaTest.cpp:41

Member Data Documentation

std::shared_ptr<ManualExecutor> ManualWaiter::ex

Definition at line 41 of file ViaTest.cpp.


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