#include <folly/futures/detail/Core.h>
#include <new>
#include <fmt/core.h>
#include <folly/Utility.h>
#include <folly/lang/Assume.h>
namespace folly {
namespace futures {
namespace detail {
namespace {
template <class Enum>
void terminate_unexpected_state(fmt::string_view context, Enum state) { … }
}
void UniqueDeleter::operator()(DeferredExecutor* ptr) { … }
KeepAliveOrDeferred::KeepAliveOrDeferred(KeepAliveOrDeferred&& other) noexcept
: … { … }
KeepAliveOrDeferred::~KeepAliveOrDeferred() { … }
KeepAliveOrDeferred& KeepAliveOrDeferred::operator=(
KeepAliveOrDeferred&& other) noexcept { … }
DeferredExecutor* KeepAliveOrDeferred::getDeferredExecutor() const noexcept { … }
Executor* KeepAliveOrDeferred::getKeepAliveExecutor() const noexcept { … }
KeepAliveOrDeferred::KA KeepAliveOrDeferred::stealKeepAlive() && noexcept { … }
KeepAliveOrDeferred::DW KeepAliveOrDeferred::stealDeferred() && noexcept { … }
KeepAliveOrDeferred KeepAliveOrDeferred::copy() const { … }
operator bool()
void DeferredExecutor::addFrom(
Executor::KeepAlive<>&& completingKA,
Executor::KeepAlive<>::KeepAliveFunc func) { … }
Executor* DeferredExecutor::getExecutor() const { … }
void DeferredExecutor::setExecutor(
folly::Executor::KeepAlive<> executor, bool inlineUnsafe) { … }
void DeferredExecutor::setNestedExecutors(
std::vector<DeferredWrapper> executors) { … }
void DeferredExecutor::detach() { … }
DeferredWrapper DeferredExecutor::copy() { … }
DeferredWrapper DeferredExecutor::create() { … }
DeferredExecutor::DeferredExecutor() { … }
void DeferredExecutor::acquire() { … }
void DeferredExecutor::release() { … }
InterruptHandler::~InterruptHandler() = default;
void InterruptHandler::acquire() { … }
void InterruptHandler::release() { … }
bool CoreBase::hasResult() const noexcept { … }
DeferredWrapper CoreBase::stealDeferredExecutor() { … }
void CoreBase::raise(exception_wrapper e) { … }
void CoreBase::initCopyInterruptHandlerFrom(const CoreBase& other) { … }
class CoreBase::CoreAndCallbackReference { … };
CoreBase::~CoreBase() { … }
void CoreBase::setCallback_(
Callback&& callback,
std::shared_ptr<folly::RequestContext>&& context,
futures::detail::InlineContinuation allowInline) { … }
void CoreBase::setResult_(Executor::KeepAlive<>&& completingKA) { … }
void CoreBase::setProxy_(CoreBase* proxy) { … }
void CoreBase::doCallback(
Executor::KeepAlive<>&& completingKA, State priorState) { … }
void CoreBase::proxyCallback(State priorState) { … }
void CoreBase::detachOne() noexcept { … }
void CoreBase::derefCallback() noexcept { … }
bool CoreBase::destroyDerived() noexcept { … }
#if FOLLY_USE_EXTERN_FUTURE_UNIT
template class Core<folly::Unit>;
#endif
}
}
}