proxygen
|
#include <Executor.h>
Public Member Functions | |
KeepAlive ()=default | |
~KeepAlive () | |
KeepAlive (KeepAlive &&other) noexcept | |
template<typename OtherExecutor , typename = typename std::enable_if< std::is_convertible<OtherExecutor*, ExecutorT*>::value>::type> | |
KeepAlive (KeepAlive< OtherExecutor > &&other) noexcept | |
KeepAlive & | operator= (KeepAlive &&other) |
template<typename OtherExecutor , typename = typename std::enable_if< std::is_convertible<OtherExecutor*, ExecutorT*>::value>::type> | |
KeepAlive & | operator= (KeepAlive< OtherExecutor > &&other) |
void | reset () |
operator bool () const | |
ExecutorT * | get () const |
ExecutorT & | operator* () const |
ExecutorT * | operator-> () const |
KeepAlive | copy () const |
Private Member Functions | |
KeepAlive (ExecutorT *executor, bool dummy) | |
Private Attributes | |
intptr_t | executorAndDummyFlag_ {reinterpret_cast<intptr_t>(nullptr)} |
Static Private Attributes | |
static constexpr intptr_t | kDummyFlag = 1 |
static constexpr intptr_t | kExecutorMask = ~kDummyFlag |
Friends | |
class | Executor |
template<typename OtherExecutor > | |
class | KeepAlive |
Definition at line 53 of file Executor.h.
|
default |
|
inline |
Definition at line 57 of file Executor.h.
|
inlinenoexcept |
Definition at line 61 of file Executor.h.
|
inlinenoexcept |
Definition at line 68 of file Executor.h.
|
inlineprivate |
Definition at line 125 of file Executor.h.
|
inline |
Definition at line 113 of file Executor.h.
Referenced by folly::futures::detail::DeferredExecutor::setExecutor(), and folly::window().
|
inline |
Definition at line 100 of file Executor.h.
Referenced by folly::TEST().
|
inlineexplicit |
Definition at line 96 of file Executor.h.
|
inline |
Definition at line 105 of file Executor.h.
|
inline |
Definition at line 109 of file Executor.h.
|
inline |
Definition at line 73 of file Executor.h.
|
inline |
Definition at line 83 of file Executor.h.
|
inline |
Definition at line 87 of file Executor.h.
Referenced by folly::Executor::KeepAlive< folly::VirtualEventBase >::operator=(), folly::fibers::ExecutorLoopController::runLoop(), and folly::Executor::KeepAlive< folly::VirtualEventBase >::~KeepAlive().
|
friend |
Definition at line 121 of file Executor.h.
|
friend |
Definition at line 123 of file Executor.h.
|
private |
Definition at line 134 of file Executor.h.
Referenced by folly::Executor::KeepAlive< folly::VirtualEventBase >::get(), folly::Executor::isKeepAliveDummy(), folly::Executor::KeepAlive< folly::VirtualEventBase >::KeepAlive(), folly::Executor::KeepAlive< folly::VirtualEventBase >::operator bool(), folly::Executor::KeepAlive< folly::VirtualEventBase >::operator=(), and folly::Executor::KeepAlive< folly::VirtualEventBase >::reset().
|
staticprivate |
Definition at line 118 of file Executor.h.
Referenced by folly::Executor::KeepAlive< folly::VirtualEventBase >::reset().
|
staticprivate |
Definition at line 119 of file Executor.h.
Referenced by folly::Executor::KeepAlive< folly::VirtualEventBase >::get().