client: Initialize diagnostics framework for the power management and proxy detection threads on Windows

This commit is contained in:
Rom Walton 2013-10-03 20:15:20 -04:00
parent 70de6a60df
commit 2cd108af7e
1 changed files with 9 additions and 1 deletions

View File

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