proxygen
ScopeGuard.h File Reference
#include <cstddef>
#include <cstdlib>
#include <functional>
#include <new>
#include <type_traits>
#include <utility>
#include <folly/Portability.h>
#include <folly/Preprocessor.h>
#include <folly/Utility.h>
#include <folly/lang/UncaughtExceptions.h>

Go to the source code of this file.

Classes

class  folly::detail::ScopeGuardImplBase
 
class  folly::detail::ScopeGuardImpl< FunctionType, InvokeNoexcept >
 

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 
 folly::detail
 

Macros

#define SCOPE_EXIT
 

Typedefs

template<typename F , bool INE>
using folly::detail::ScopeGuardImplDecay = ScopeGuardImpl< typename std::decay< F >::type, INE >
 

Enumerations

enum  folly::detail::ScopeGuardOnExit
 

Functions

template<typename F >
FOLLY_NODISCARD detail::ScopeGuardImplDecay< F, true > folly::makeGuard (F &&f) noexcept(noexcept(detail::ScopeGuardImplDecay< F, true >(static_cast< F && >(f))))
 
template<typename FunctionType >
ScopeGuardImpl< typename std::decay< FunctionType >::type, true > folly::detail::operator+ (detail::ScopeGuardOnExit, FunctionType &&fn)
 

Macro Definition Documentation

#define SCOPE_EXIT
Value:
auto FB_ANONYMOUS_VARIABLE(SCOPE_EXIT_STATE) = \
#define FB_ANONYMOUS_VARIABLE(str)
Definition: Preprocessor.h:92
requires E e noexcept(noexcept(s.error(std::move(e))))

Definition at line 274 of file ScopeGuard.h.

Referenced by folly::fibers::FiberManager::activateFiber(), folly::coro::TaskWithExecutor< T >::Awaiter::await_resume(), folly::coro::detail::TaskPromiseBase::await_transform(), folly::AsyncServerSocket::bind(), folly::NotificationQueue< MessageT >::Consumer::consumeMessages(), folly::NotificationQueue< MessageT >::SimpleConsumer::consumeUntilDrained(), folly::detail::SingletonHolder< T >::createInstance(), folly::fibers::FiberManager::deactivateFiber(), folly::VirtualEventBase::destroyImpl(), folly::BenchmarkSuspender::dismissing(), folly::futures::detail::Core< T >::doCallback(), folly::SingletonVault::doEagerInitVia(), folly::io::StreamCodec::doUncompress(), folly::EventBase::drive(), folly::gen::detail::Parallel< Ops >::Generator< Input, Source, InputDecayed, Composed, Output, OutputDecayed >::Executor< all >::Executor(), folly::detail::MemoryIdler::flushLocalMallocCaches(), folly::getLinuxVersion(), folly::ssl::getOpenSSLCipherNames(), folly::ssl::OpenSSLCertUtils::getSubjectAltNames(), folly::observer_detail::ObserverManager::initCore(), folly::loggingFormatPrintf(), folly::EventBase::loopBody(), folly::EventBase::loopForever(), folly::fibers::FiberManager::loopUntilNoReadyImpl(), folly::test::msvcSuppressAbortOnInvalidParams(), folly::InitThreadFactory::newThread(), folly::AsyncSSLSocket::performWrite(), folly::symbolizer::SymbolizePrinter::print(), folly::symbolizer::SafeStackTracePrinter::printStackTrace(), folly::symbolizer::FastStackTracePrinter::printStackTrace(), fizz::FizzBase< Derived, ActionMoveVisitor, StateMachine >::processPendingEvents(), pwritev(), folly::readFile(), folly::netops::recvmsg(), folly::observer_detail::Core::refresh(), folly::EventBase::runInEventBaseThreadAndWait(), folly::fibers::FiberManager::runReadyFiber(), folly::ThreadPoolExecutor::runTask(), proxygen::ResponseBuilder::send(), folly::Subprocess::spawn(), folly::Subprocess::spawnInternal(), folly::stringAppendf(), folly::stringPrintf(), folly::File::temporary(), folly::test::TEST(), TEST(), folly::TEST(), TEST_F(), folly::test::TEST_F(), testIsRelocatable(), TestServer::TestServer(), folly::test::DeterministicSchedule::thread(), proxygen::AsyncTimeoutSet::timeoutExpired(), folly::NotificationQueue< folly::AsyncServerSocket::QueueMessage >::tryConsume(), folly::IPAddressV6::tryFromString(), folly::detail::distributed_mutex::DistributedMutex< Atomic, TimePublishing >::unlock(), folly::ssl::OpenSSLUtils::validatePeerCertNames(), folly::io::Appender::vprintf(), vprintfCheck(), vprintfError(), folly::python::GILAwareManualExecutor::waitBeforeDrive(), folly::writeFileAtomicNoThrow(), and Foo::~Foo().