proxygen
|
Public Member Functions | |
void | add (Func f) override |
void | addWithPriority (Func f, int8_t priority) override |
virtual uint8_t | getNumPriorities () const override |
Public Member Functions inherited from folly::Executor | |
virtual | ~Executor () |
Static Public Member Functions | |
static folly::Executor::KeepAlive | create (std::shared_ptr< ControlBlock > controlBlock, Executor *executor) |
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) |
Private Member Functions | |
WeakRef (std::shared_ptr< ControlBlock > controlBlock, Executor *executor) | |
bool | keepAliveAcquire () override |
void | keepAliveRelease () override |
folly::Executor::KeepAlive | lock () |
Private Attributes | |
std::atomic< size_t > | keepAliveCount_ {1} |
std::shared_ptr< ControlBlock > | controlBlock_ |
Executor * | executor_ |
uint8_t | numPriorities_ |
Additional Inherited Members | |
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 54 of file DefaultKeepAliveExecutor.h.
|
inlineprivate |
Definition at line 79 of file DefaultKeepAliveExecutor.h.
|
inlineoverridevirtual |
Enqueue a function to executed by this executor. This and all variants must be threadsafe.
Implements folly::Executor.
Definition at line 62 of file DefaultKeepAliveExecutor.h.
References folly::pushmi::executor, folly::lock(), and folly::gen::move.
|
inlineoverridevirtual |
Enqueue a function with a given priority, where 0 is the medium priority This is up to the implementation to enforce
Reimplemented from folly::Executor.
Definition at line 68 of file DefaultKeepAliveExecutor.h.
References folly::pushmi::executor, folly::lock(), and folly::gen::move.
|
inlinestatic |
Definition at line 56 of file DefaultKeepAliveExecutor.h.
References folly::Executor::makeKeepAlive(), and folly::gen::move.
Referenced by folly::DefaultKeepAliveExecutor::weakRef().
|
inlineoverridevirtual |
Reimplemented from folly::Executor.
Definition at line 74 of file DefaultKeepAliveExecutor.h.
|
inlineoverrideprivatevirtual |
Reimplemented from folly::Executor.
Definition at line 84 of file DefaultKeepAliveExecutor.h.
References folly::DefaultKeepAliveExecutor::ControlBlock::keepAliveCount_.
|
inlineoverrideprivatevirtual |
Reimplemented from folly::Executor.
Definition at line 92 of file DefaultKeepAliveExecutor.h.
References folly::DefaultKeepAliveExecutor::ControlBlock::keepAliveCount_.
|
inlineprivate |
Definition at line 102 of file DefaultKeepAliveExecutor.h.
References folly::DefaultKeepAliveExecutor::controlBlock_, and folly::Executor::makeKeepAlive().
|
private |
Definition at line 120 of file DefaultKeepAliveExecutor.h.
|
private |
Definition at line 121 of file DefaultKeepAliveExecutor.h.
|
private |
Definition at line 118 of file DefaultKeepAliveExecutor.h.
|
private |
Definition at line 123 of file DefaultKeepAliveExecutor.h.