proxygen
folly::detail::SingletonVaultState Struct Reference

#include <Singleton.h>

Public Types

enum  Type { Type::Running, Type::Quiescing }
 

Public Member Functions

void check (Type expected, const char *msg="Unexpected singleton state change") const
 

Public Attributes

Type state {Type::Running}
 
bool registrationComplete {false}
 

Detailed Description

Definition at line 255 of file Singleton.h.

Member Enumeration Documentation

Enumerator
Running 
Quiescing 

Definition at line 257 of file Singleton.h.

257  {
258  Running,
259  Quiescing,
260  };

Member Function Documentation

void folly::detail::SingletonVaultState::check ( Type  expected,
const char *  msg = "Unexpected singleton state change" 
) const
inline

Definition at line 268 of file Singleton.h.

270  {
271  if (expected != state) {
272  throw_exception<std::logic_error>(msg);
273  }
274  }
state
Definition: http_parser.c:272

Member Data Documentation

bool folly::detail::SingletonVaultState::registrationComplete {false}

Definition at line 263 of file Singleton.h.

Type folly::detail::SingletonVaultState::state {Type::Running}

Definition at line 262 of file Singleton.h.


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