proxygen
|
Public Types | |
using | ListHook = boost::intrusive::list_member_hook< boost::intrusive::link_mode< boost::intrusive::auto_unlink >> |
using | List = boost::intrusive::list< CobTimeout, boost::intrusive::member_hook< CobTimeout, ListHook,&CobTimeout::hook >, boost::intrusive::constant_time_size< false >> |
Public Types inherited from folly::AsyncTimeout | |
typedef TimeoutManager::InternalEnum | InternalEnum |
Public Member Functions | |
CobTimeout (TimeoutManager *timeoutManager, Func cob, InternalEnum internal) | |
void | timeoutExpired () noexceptoverride |
Public Member Functions inherited from folly::AsyncTimeout | |
AsyncTimeout (TimeoutManager *timeoutManager) | |
AsyncTimeout (EventBase *eventBase) | |
AsyncTimeout (TimeoutManager *timeoutManager, InternalEnum internal) | |
AsyncTimeout (EventBase *eventBase, InternalEnum internal) | |
AsyncTimeout () | |
virtual | ~AsyncTimeout () |
bool | scheduleTimeout (uint32_t milliseconds) |
bool | scheduleTimeout (TimeoutManager::timeout_type timeout) |
void | cancelTimeout () |
bool | isScheduled () const |
void | attachTimeoutManager (TimeoutManager *timeoutManager, InternalEnum internal=InternalEnum::NORMAL) |
void | attachEventBase (EventBase *eventBase, InternalEnum internal=InternalEnum::NORMAL) |
void | detachTimeoutManager () |
void | detachEventBase () |
const TimeoutManager * | getTimeoutManager () |
struct event * | getEvent () |
Public Attributes | |
ListHook | hook |
Private Attributes | |
Func | cob_ |
Additional Inherited Members | |
Static Public Member Functions inherited from folly::AsyncTimeout | |
template<typename TCallback > | |
static std::unique_ptr< AsyncTimeout > | make (TimeoutManager &manager, TCallback &&callback) |
template<typename TCallback > | |
static std::unique_ptr< AsyncTimeout > | schedule (TimeoutManager::timeout_type timeout, TimeoutManager &manager, TCallback &&callback) |
Definition at line 32 of file TimeoutManager.cpp.
using folly::TimeoutManager::CobTimeouts::CobTimeout::List = boost::intrusive::list< CobTimeout, boost::intrusive::member_hook<CobTimeout, ListHook, &CobTimeout::hook>, boost::intrusive::constant_time_size<false>> |
Definition at line 64 of file TimeoutManager.cpp.
using folly::TimeoutManager::CobTimeouts::CobTimeout::ListHook = boost::intrusive::list_member_hook< boost::intrusive::link_mode<boost::intrusive::auto_unlink>> |
Definition at line 59 of file TimeoutManager.cpp.
|
inline |
Definition at line 34 of file TimeoutManager.cpp.
|
inlineoverridevirtualnoexcept |
timeoutExpired() is invoked when the timeout period has expired.
Implements folly::AsyncTimeout.
Definition at line 37 of file TimeoutManager.cpp.
|
private |
Definition at line 55 of file TimeoutManager.cpp.
Referenced by timeoutExpired().
ListHook folly::TimeoutManager::CobTimeouts::CobTimeout::hook |
Definition at line 60 of file TimeoutManager.cpp.