proxygen
SlowpokeNeedySingleton Struct Reference

Public Member Functions

 SlowpokeNeedySingleton ()
 

Detailed Description

Definition at line 670 of file SingletonTest.cpp.

Constructor & Destructor Documentation

SlowpokeNeedySingleton::SlowpokeNeedySingleton ( )
inline

Definition at line 671 of file SingletonTest.cpp.

References EXPECT_NE, folly::Baton< MayBlock, Atom >::post(), and folly::Singleton< T, Tag, VaultTag >::try_get().

671  {
673  /* sleep override */ std::this_thread::sleep_for(
674  std::chrono::milliseconds(100));
675  auto unused =
677  EXPECT_NE(unused, nullptr);
678  }
void post() noexcept
Definition: Baton.h:123
static std::shared_ptr< T > try_get()
Definition: Singleton.h:598
folly::Baton slowpokeNeedySingletonBaton
#define EXPECT_NE(val1, val2)
Definition: gtest.h:1926

The documentation for this struct was generated from the following file: