mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
daemon: add comments
This commit is contained in:
parent
5d5bb88118
commit
2f6b489ec2
@ -91,6 +91,7 @@ public:
|
||||
return dynamic_cast<BaseDaemon &>(Poco::Util::Application::instance());
|
||||
}
|
||||
|
||||
/// return none if daemon doesn't exist, reference to the daemon otherwise
|
||||
static boost::optional<BaseDaemon &> tryGetInstance() { return tryGetInstance<BaseDaemon>(); }
|
||||
|
||||
/// Спит заданное количество секунд или до события wakeup
|
||||
@ -211,6 +212,7 @@ boost::optional<Daemon &> BaseDaemon::tryGetInstance()
|
||||
}
|
||||
catch (const Poco::NullPointerException &)
|
||||
{
|
||||
/// if daemon doesn't exist than instance() throw NullPointerException
|
||||
}
|
||||
|
||||
if (ptr)
|
||||
|
Loading…
Reference in New Issue
Block a user