proxygen
|
Public Member Functions | |
void | add (Func) override |
bool | keepAliveAcquire () override |
void | keepAliveRelease () override |
Public Member Functions inherited from folly::Executor | |
virtual | ~Executor () |
virtual void | addWithPriority (Func, int8_t priority) |
virtual uint8_t | getNumPriorities () const |
Public Attributes | |
std::atomic< int > | refCount {0} |
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 |
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) |
Definition at line 24 of file ExecutorTest.cpp.
|
inlineoverridevirtual |
Enqueue a function to executed by this executor. This and all variants must be threadsafe.
Implements folly::Executor.
Definition at line 26 of file ExecutorTest.cpp.
|
inlineoverridevirtual |
Reimplemented from folly::Executor.
Definition at line 30 of file ExecutorTest.cpp.
References refCount.
|
inlineoverridevirtual |
Reimplemented from folly::Executor.
Definition at line 35 of file ExecutorTest.cpp.
References refCount.
std::atomic<int> folly::KeepAliveTestExecutor::refCount {0} |
Definition at line 39 of file ExecutorTest.cpp.
Referenced by keepAliveAcquire(), keepAliveRelease(), and folly::TEST().