daemon: add comments

This commit is contained in:
Pavel Kartavyy 2016-09-21 16:30:27 +03:00
parent 5d5bb88118
commit 2f6b489ec2

View File

@ -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)