The previous commit is 1:1 the same I've implemented
here already. Great teamwork with Alex :)
refs #6445
Loader::ExecuteDeferredInitializers();
- /* make sure the thread pool gets initialized */
+ /* Make sure the thread pool gets initialized. */
GetTP().Start();
+ /* Make sure the timer thread gets initialized. */
Timer::Initialize();
}
*/
void Application::RunEventLoop()
{
-
#ifdef HAVE_SYSTEMD
sd_notify(0, "READY=1");
#endif /* HAVE_SYSTEMD */
#include "base/timer.hpp"
#include "base/debug.hpp"
+#include "base/logger.hpp"
#include "base/utility.hpp"
#include <boost/thread/mutex.hpp>
#include <boost/thread/condition_variable.hpp>
*/
void Timer::TimerThreadProc()
{
+ Log(LogDebug, "Timer", "TimerThreadProc started.");
+
Utility::SetThreadName("Timer Thread");
for (;;) {
_exit(EXIT_SUCCESS);
}
+ Log(LogDebug, "Daemonize()")
+ << "Child process with PID " << Utility::GetPid() << " continues; re-initializing base.";
+
Application::InitializeBase();
#endif /* _WIN32 */