projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Disallow folly::Singletons before main()
[folly.git]
/
folly
/
Singleton-inl.h
diff --git
a/folly/Singleton-inl.h
b/folly/Singleton-inl.h
index 4a6c071ba4c2d794c4f5bd4a6265eb021b357d19..a0c8cd93094590e2e0752f0569c9c09a2bf74e55 100644
(file)
--- a/
folly/Singleton-inl.h
+++ b/
folly/Singleton-inl.h
@@
-225,9
+225,6
@@
void SingletonHolder<T>::createInstance() {
auto state = vault_.state_.rlock();
if (state->state == SingletonVault::SingletonVaultState::Quiescing) {
- if (vault_.type_ != SingletonVault::Type::Relaxed) {
- LOG(FATAL) << "Requesting singleton after vault was destroyed.";
- }
return;
}