proxygen
StaticSingletonManager.cpp File Reference
#include <folly/detail/StaticSingletonManager.h>
#include <mutex>
#include <typeindex>
#include <unordered_map>

Go to the source code of this file.

Namespaces

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

Variable Documentation

std::unordered_map<std::type_index, Entry*> map_
private

Definition at line 48 of file StaticSingletonManager.cpp.

std::mutex mutex_
private

Definition at line 49 of file StaticSingletonManager.cpp.

Referenced by folly::ThreadPoolExecutor::StoppedThreadQueue::add(), folly::FunctionScheduler::addFunctionToHeap(), folly::FunctionScheduler::addFunctionToHeapChecked(), testing::UnitTest::AddTestPartResult(), folly::FunctionScheduler::cancelAllFunctions(), folly::FunctionScheduler::cancelAllFunctionsAndWait(), folly::FunctionScheduler::cancelFunction(), folly::FunctionScheduler::cancelFunctionAndWait(), testing::internal::CheckedDowncastToActualType(), testing::TestEventListeners::default_xml_generator(), folly::SharedPromise< T >::getSemiFuture(), wangle::ThreadSafeSSLSessionCache::getSSLSession(), testing::internal::GetThreadCount(), folly::HandshakeCallback::handshakeErr(), folly::HandshakeCallback::handshakeSuc(), testing::UnitTest::impl(), testing::internal::ExpectationBase::IncrementCallCount(), folly::SharedPromise< T >::isFulfilled(), testing::internal::NoDefaultContructor::NoDefaultContructor(), folly::SharedPromise< T >::operator=(), testing::UnitTest::PushGTestTrace(), testing::UnitTest::random_seed(), folly::detail::SingletonHolder< T >::registerSingleton(), folly::detail::SingletonHolder< T >::registerSingletonMock(), wangle::ThreadSafeSSLSessionCache::removeSSLSession(), folly::FunctionScheduler::resetFunctionTimer(), folly::FunctionScheduler::run(), folly::FunctionScheduler::runOneFunction(), folly::SharedPromise< T >::setInterruptHandler(), wangle::ThreadSafeSSLSessionCache::setSSLSession(), folly::FunctionScheduler::setThreadName(), folly::SharedPromise< T >::setTry(), folly::FunctionScheduler::shutdown(), folly::SharedPromise< T >::size(), folly::ThreadPoolExecutor::StoppedThreadQueue::size(), folly::FunctionScheduler::start(), folly::Synchronized< std::vector< detail::folly::detail::TypeDescriptor >, folly::SharedMutexImpl >::Synchronized(), folly::ThreadPoolExecutor::StoppedThreadQueue::take(), testing::internal::TEST(), folly::ThreadPoolExecutor::StoppedThreadQueue::try_take_for(), folly::HandshakeCallback::waitForHandshake(), and testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile().

*Config * ptr {}

Definition at line 38 of file StaticSingletonManager.cpp.

Referenced by folly::ReadMostlyMainPtrDeleter< RefCount >::add(), folly::AsyncSocket::addZeroCopyBuf(), folly::IndexedMemPool< T, NumLocalLists_, LocalListLimit_, Atom, Traits >::allocElem(), folly::exception_wrapper::ExceptionPtr::as_int_(), BENCHMARK(), folly::portability::ssl::BIO_set_data(), folly::fbstring_core< char >::c_str(), testing::internal::linked_ptr< const testing::MatcherInterface< const internal::string & > >::capture(), folly::threadlocal_detail::ElementWrapper::cleanup(), folly::IOBuf::cloneOneInto(), folly::Optional< NamedGroup >::construct(), contendedRW(), testing::internal::linked_ptr< const testing::MatcherInterface< const internal::string & > >::copy(), wangle::StaticPipeline< R, W, Handler, Handlers... >::create(), folly::fibers::Fiber::LocalData::dataBufferDestructor(), folly::fibers::Fiber::LocalData::dataCopyConstructor(), folly::fibers::Fiber::LocalData::dataHeapDestructor(), folly::deallocateBytes(), folly::detail::SingleElementQueue< T, Atom >::dequeueImpl(), folly::threadlocal_detail::StaticMetaBase::destroy(), folly::detail::SingleElementQueue< T, Atom >::destroyContents(), folly::threadlocal_detail::ElementWrapper::dispose(), folly::threadlocal_detail::StaticMetaBase::erase(), folly::detail::EventBaseLocalBase::EventBaseLocalBase(), folly::exception_wrapper::exception_wrapper(), wangle::SSLUtil::exDataStdStringDup(), wangle::SSLUtil::exDataStdStringFree(), fizz::test::ProtocolTest< ClientTypes, Actions >::expectAeadCreation(), folly::exception_wrapper::from_exception_ptr(), folly::Function< std::vector< ResultT >(std::vector< InputT > &&)>::Function(), folly::ThreadLocal< std::queue< folly::Function > >::get(), folly::detail::shared_ptr_internals::get_counted_base(), folly::get_default(), detail::get_pointer(), folly::hazptr_holder< Atom >::get_protected(), folly::get_ref_default(), folly::detail::shared_ptr_internals::get_shared_ptr(), RequestContextTest::getData(), folly::AsyncSocket::getNextZeroCopyBufId(), folly::EventBaseLocal< T >::getOrCreate(), folly::EventBaseLocal< T >::getOrCreateFn(), folly::ssl::detail::SSLSessionImpl::getSessionID(), testing::internal::GetThreadCount(), proxygen::HTTP2Codec::handleSettings(), folly::detail::hexDumpLine(), folly::IndexedMemPoolTraits< T, EagerRecycleWhenTrivial, EagerRecycleWhenNotTrivial >::initialize(), MockTraits::Forwarder::initialize(), folly::small_vector< Observer< T > *, InlineObservers >::insert(), folly::symbolizer::ElfFile::iterateProgramHeaders(), folly::symbolizer::ElfFile::iterateSections(), folly::symbolizer::ElfFile::iterateStrings(), testing::internal::linked_ptr_internal::join(), testing::internal::linked_ptr< const testing::MatcherInterface< const internal::string & > >::linked_ptr(), make_counted(), testing::internal::make_linked_ptr(), folly::ThreadLocal< std::queue< folly::Function > >::makeTlp(), folly::IndexedMemPoolTraits< T, EagerRecycleWhenTrivial, EagerRecycleWhenNotTrivial >::onAllocate(), folly::threadlocal_detail::StaticMetaBase::onThreadExit(), folly::IOBuf::operator delete(), folly::IOBuf::operator new(), folly::RequestData::DestructPtr::operator()(), folly::dptr_detail::ApplyVisitor1< index, V, R, T, Types... >::operator()(), folly::dptr_detail::ApplyConstVisitor1< index, V, R, T, Types... >::operator()(), folly::ExpectingDeleter::operator()(), folly::detail::TypeDescriptorHasher::operator()(), folly::operator<<(), folly::F14VectorSet< Key, Hasher, KeyEqual, Alloc >::operator=(), folly::F14VectorMap< Key, Mapped, Hasher, KeyEqual, Alloc >::operator=(), folly::Function< std::vector< ResultT >(std::vector< InputT > &&)>::operator=(), testing::internal::DoBothAction< Action1, Action2 >::Impl< F >::Perform(), folly::compression::EliasFanoReader< Encoder, Instructions, kUnchecked, SizeType >::readLowerPart(), proxygen::RFC1867Codec::readToBoundary(), folly::threadlocal_detail::ElementWrapper::release(), testing::internal::scoped_ptr< const ::std::string >::release(), folly::detail::shared_ptr_internals::release_ptr(), folly::AsyncSocket::releaseZeroCopyBuf(), folly::hazptr_holder< Atom >::reset(), testing::internal::linked_ptr< const testing::MatcherInterface< const internal::string & > >::reset(), folly::ThreadLocalPtr< SubscriberMap >::reset(), folly::threadlocal_detail::ElementWrapper::set(), folly::PackedSyncPtr< T >::setExtra(), folly::detail::EventBaseLocalBase::setVoid(), folly::AsyncSocket::setZeroCopyBuf(), folly::detail::sharedMutexAnnotationGuard(), folly::detail::singletonWarnCreateUnregisteredAndAbort(), folly::detail::singletonWarnLeakyInstantiatingNotRegisteredAndAbort(), TEST(), folly::TEST(), TEST_F(), fizz::test::TEST_F(), testFreeFn(), testTraits(), folly::to_weak_ptr(), folly::experimental::EnvironmentState::toPointerArray(), folly::hazptr_holder< Atom >::try_protect(), folly::unhexlify(), folly::LogCategory::updateHandlers(), folly::usingJEMalloc(), and folly::compression::EliasFanoEncoderV2< Value, SkipValue, kSkipQuantum, kForwardQuantum >::writeBits56().