proxygen
|
Public Member Functions | |
ReschedulingTimeout (EventBase *evb, const vector< uint32_t > &timeouts) | |
void | start () |
void | timeoutExpired () noexceptoverride |
void | reschedule () |
![]() | |
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 | |
vector< TimePoint > | timestamps |
Private Attributes | |
vector< uint32_t > | timeouts_ |
vector< uint32_t >::const_iterator | iterator_ |
Additional Inherited Members | |
![]() | |
typedef TimeoutManager::InternalEnum | InternalEnum |
![]() | |
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 925 of file EventBaseTest.cpp.
|
inline |
Definition at line 927 of file EventBaseTest.cpp.
|
inline |
Definition at line 939 of file EventBaseTest.cpp.
References folly::detail::timeout, and uint32_t.
|
inline |
|
inlineoverridevirtualnoexcept |
timeoutExpired() is invoked when the timeout period has expired.
Implements folly::AsyncTimeout.
Definition at line 934 of file EventBaseTest.cpp.
Definition at line 951 of file EventBaseTest.cpp.
Definition at line 950 of file EventBaseTest.cpp.
Definition at line 947 of file EventBaseTest.cpp.
Referenced by TEST().