#include <folly/io/async/AsyncTimeout.h>
#include <cassert>
#include <glog/logging.h>
#include <folly/io/async/EventBase.h>
#include <folly/io/async/EventUtil.h>
#include <folly/net/NetworkSocket.h>
namespace folly {
AsyncTimeout::AsyncTimeout(
TimeoutManager* timeoutManager, InternalEnum internal)
: … { … }
AsyncTimeout::AsyncTimeout(TimeoutManager* timeoutManager)
: … { … }
AsyncTimeout::AsyncTimeout(EventBase* eventBase)
: … { … }
AsyncTimeout::AsyncTimeout(EventBase* eventBase, InternalEnum internal)
: … { … }
AsyncTimeout::AsyncTimeout()
: … { … }
AsyncTimeout::~AsyncTimeout() { … }
bool AsyncTimeout::scheduleTimeout(
TimeoutManager::timeout_type timeout,
std::shared_ptr<RequestContext>&& rctx) { … }
bool AsyncTimeout::scheduleTimeoutHighRes(
TimeoutManager::timeout_type_high_res timeout,
std::shared_ptr<RequestContext>&& rctx) { … }
bool AsyncTimeout::scheduleTimeout(
uint32_t milliseconds, std::shared_ptr<RequestContext>&& rctx) { … }
void AsyncTimeout::cancelTimeout() { … }
bool AsyncTimeout::isScheduled() const { … }
void AsyncTimeout::attachTimeoutManager(
TimeoutManager* timeoutManager, InternalEnum internal) { … }
void AsyncTimeout::attachEventBase(
EventBase* eventBase, InternalEnum internal) { … }
void AsyncTimeout::detachTimeoutManager() { … }
void AsyncTimeout::detachEventBase() { … }
void AsyncTimeout::libeventCallback(libevent_fd_t fd, short events, void* arg) { … }
}