From 2cd108af7e7e9152951cb877df2367110efdff2a Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Thu, 3 Oct 2013 20:15:20 -0400 Subject: [PATCH] client: Initialize diagnostics framework for the power management and proxy detection threads on Windows --- client/sysmon_win.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/client/sysmon_win.cpp b/client/sysmon_win.cpp index 7d25d1b98b..b1fc763de2 100644 --- a/client/sysmon_win.cpp +++ b/client/sysmon_win.cpp @@ -186,6 +186,10 @@ static DWORD WINAPI WindowsMonitorSystemPowerThread( LPVOID ) { WNDCLASS wc; MSG msg; + // Initialize diagnostics framework for this thread + // + diagnostics_thread_init(BOINC_DIAG_DEFAULTS); + wc.style = CS_GLOBALCLASS; wc.lpfnWndProc = (WNDPROC)WindowsMonitorSystemPowerWndProc; wc.cbClsExtra = 0; @@ -359,7 +363,11 @@ static void windows_detect_autoproxy_settings() { } static DWORD WINAPI WindowsMonitorSystemProxyThread( LPVOID ) { - + + // Initialize diagnostics framework for this thread + // + diagnostics_thread_init(BOINC_DIAG_DEFAULTS); + // notify the main client thread that detecting proxies is // supported. working_proxy_info.autodetect_proxy_supported = true;