X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2FSingleton-inl.h;h=a643e0374d413614d78ac627ac303eec5474b198;hb=46f3788d8acb3d351698d9ffff551807c807caa7;hp=0071ddf5fe752e1fe9edc9366756d97bc4b444d3;hpb=7dd60842ca7b3ca266db5dfcf31e99b3adbfbe17;p=folly.git diff --git a/folly/Singleton-inl.h b/folly/Singleton-inl.h index 0071ddf5..a643e037 100644 --- a/folly/Singleton-inl.h +++ b/folly/Singleton-inl.h @@ -140,6 +140,7 @@ void SingletonHolder::destroyInstance() { state_ = SingletonHolderState::Dead; instance_.reset(); if (destroy_baton_) { + constexpr std::chrono::seconds kDestroyWaitTime{5}; auto wait_result = destroy_baton_->timed_wait( std::chrono::steady_clock::now() + kDestroyWaitTime); if (!wait_result) {