From 310acf1892d795be9ca2bb0908ccb05bb0b97093 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Thu, 3 Oct 2013 20:24:42 -0400 Subject: [PATCH] client: Initialize diagnostics framework for the sub-second CPU throttler. --- client/app.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/app.cpp b/client/app.cpp index eb6d466518..1cab7cf2bc 100644 --- a/client/app.cpp +++ b/client/app.cpp @@ -1002,6 +1002,11 @@ DWORD WINAPI throttler(LPVOID) { #else void* throttler(void*) { #endif + + // Initialize diagnostics framework for this thread + // + diagnostics_thread_init(BOINC_DIAG_DEFAULTS); + while (1) { client_mutex.lock(); if (gstate.tasks_suspended || gstate.global_prefs.cpu_usage_limit > 99) {