client: Initialize diagnostics framework for the sub-second CPU throttler.

This commit is contained in:
Rom Walton 2013-10-03 20:24:42 -04:00
parent 2cd108af7e
commit 310acf1892
1 changed files with 5 additions and 0 deletions

View File

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